IInterruptionTokenSource

public interface IInterruptionTokenSource

Represents the source of IInterruptionToken.

Methods

MethodDescription
getToken()Returns new token binded to this IInterruptionTokenSource.
isInterruptionRequested()Returns true if interruption requested, false otherwise.
interrupt()Intialize request for interruption.

getToken()

public abstract IInterruptionToken getToken()

Returns new token binded to this IInterruptionTokenSource.

Returns: IInterruptionToken

isInterruptionRequested()

public abstract boolean isInterruptionRequested()

Returns true if interruption requested, false otherwise.

Returns: boolean

interrupt()

public abstract void interrupt()

Intialize request for interruption.