AbstractInterruptMonitor

Inheritance: java.lang.Object

public abstract class AbstractInterruptMonitor

Monitor for interruption requests in all time-consuming operations.

Constructors

ConstructorDescription
AbstractInterruptMonitor()

Methods

MethodDescription
equals(Object arg0)
getClass()
getTerminateWithoutException()When procedure is interrupted, whether terminate the procedure quietly or throw an Exception.
hashCode()
isInterruptionRequested()Indicates whether interruption is requested for current operation.
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

AbstractInterruptMonitor()

public AbstractInterruptMonitor()

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getTerminateWithoutException()

public boolean getTerminateWithoutException()

When procedure is interrupted, whether terminate the procedure quietly or throw an Exception. Default is false, that is, when isInterruptionRequested() is true, a CellsException with code ExceptionType.INTERRUPTED will be thrown.

Returns: boolean

hashCode()

public native int hashCode()

Returns: int

isInterruptionRequested()

public abstract boolean isInterruptionRequested()

Indicates whether interruption is requested for current operation. If true then current operation will be interrupted. Implementation should perform fast and efficient check here, otherwise it may become another bottleneck for the procedure.

Returns: boolean

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int