Class InterruptionTokenSource

  • All Implemented Interfaces:

    public class InterruptionTokenSource
    extends Object

    Source that provides token used to interrupt long operations and triggers interruption. Must be disposed!

    • Constructor Detail

      • InterruptionTokenSource

        public InterruptionTokenSource()

        Creates source

    • Method Detail

      • dispose

        public final void dispose()

        Disposes source

        Specified by:
        dispose in interface
      • getToken

        public final InterruptionToken getToken()

        Token used to interrupt long operations

      • interrupt

        public final void interrupt()

        Triggers the interruption of operation