InterruptMonitor
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.psd.multithreading.IInterruptMonitor
public class InterruptMonitor implements IInterruptMonitor
Represents information about interruption.
Constructors
Constructor | Description |
---|---|
InterruptMonitor() | Initializes a new instance of the InterruptMonitor class. |
Methods
Method | Description |
---|---|
equals(Object arg0) | |
getClass() | |
getThreadLocalInstance() | Gets the IInterruptMonitor instance which is unique for each thread. |
hashCode() | |
interrupt() | Sends a request to interrupt operations. |
isInterrupted() | Gets the value indicating whether operations should be interrupted. |
isThreadInterrupted() | Returns true if interrupt monitor for current thread exists and it was interrupted otherwise false . |
notify() | |
notifyAll() | |
setThreadLocalInstance(IInterruptMonitor value) | Sets the IInterruptMonitor instance which is unique for each thread. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
InterruptMonitor()
public InterruptMonitor()
Initializes a new instance of the InterruptMonitor class.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getThreadLocalInstance()
public static IInterruptMonitor getThreadLocalInstance()
Gets the IInterruptMonitor instance which is unique for each thread.
Returns: IInterruptMonitor
hashCode()
public native int hashCode()
Returns: int
interrupt()
public void interrupt()
Sends a request to interrupt operations.
isInterrupted()
public boolean isInterrupted()
Gets the value indicating whether operations should be interrupted.
Returns: boolean
isThreadInterrupted()
public static boolean isThreadInterrupted()
Returns true if interrupt monitor for current thread exists and it was interrupted otherwise false .
Returns: boolean - true if interrupt monitor for current thread exists and it was interrupted otherwise false .
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setThreadLocalInstance(IInterruptMonitor value)
public static void setThreadLocalInstance(IInterruptMonitor value)
Sets the IInterruptMonitor instance which is unique for each thread.
Parameters:
Parameter | Type | Description |
---|---|---|
value | IInterruptMonitor |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |