Class InterruptibleRMIThread

java.lang.Object
java.lang.Thread
ecmwf.common.rmi.interruptible.InterruptibleRMIThread
All Implemented Interfaces:
Runnable

public final class InterruptibleRMIThread extends Thread
The Class InterruptibleRMIThread.
  • Constructor Details

    • InterruptibleRMIThread

      public InterruptibleRMIThread(Runnable target)
      Instantiates a new interruptible RMI thread.
      Parameters:
      target - the target
      See Also:
    • InterruptibleRMIThread

      public InterruptibleRMIThread(ThreadGroup group, Runnable runnable, String name, long stackSize)
      Instantiates a new interruptible RMI thread.
      Parameters:
      group - the group
      runnable - the runnable
      name - the name
      stackSize - the stack size
      See Also:
  • Method Details

    • interrupt

      public void interrupt()
      Interrupt this thread, even if it is in a blocking RMI IO operation. This method first invokes the superclass's #interrupt method. Then, if an RMI socket has been registered as being in IO for this thread, a special marker (like an EOF) is written to the socket (to help the server side shutdown its threads), and then the RMI socket is directly closed. Afterwards, this thread's interrupt status will have been set.
      Overrides:
      interrupt in class Thread
      See Also: