Packages

 

com.aspose.imaging.multithreading

Class InterruptMonitor



  • public class InterruptMonitor
    extends Object

    Represents information about interruption.

    • Constructor Detail

      • InterruptMonitor

        public InterruptMonitor()

        Initializes a new instance of the InterruptMonitor class.

    • Method Detail

      • getThreadLocalInstance

        public static InterruptMonitor getThreadLocalInstance()

        Gets or sets the InterruptMonitor instance which is unique for each thread.

      • setThreadLocalInstance

        public static void setThreadLocalInstance(InterruptMonitor value)

        Gets or sets the InterruptMonitor instance which is unique for each thread.

      • isThreadInterrupted

        public static boolean isThreadInterrupted()

        Returns true if interrupt monitor for current thread exists and it was interrupted otherwise false.

        Returns:
        true if interrupt monitor for current thread exists and it was interrupted otherwise false.
      • isInterrupted

        public boolean isInterrupted()

        Gets the value indicating whether operations should be interrupted.

      • interrupt

        public void interrupt()

        Sends a request to interrupt operations.