com.sun.jini.thread
Class InterruptedStatusThread
java.lang.Object
  
java.lang.Thread
      
com.gigaspaces.internal.utils.concurrent.GSThread
          
com.sun.jini.thread.InterruptedStatusThread
- All Implemented Interfaces: 
 - Runnable
 
public class InterruptedStatusThread
- extends com.gigaspaces.internal.utils.concurrent.GSThread
 
Common Thread subclass to handle potential loss of
 interrupted status.
- Since:
 
  - 2.1
 
- Author:
 
  - Sun Microsystems, Inc.
 
 
 
 
 
 
 
| Methods inherited from class java.lang.Thread | 
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield | 
 
 
InterruptedStatusThread
public InterruptedStatusThread(Runnable target,
                               String name)
- Constructs a new 
InterruptedStatusThread object.
- Parameters:
 target - the object whose run method is calledname - the name of the new thread
 
InterruptedStatusThread
public InterruptedStatusThread(String name)
- Constructs a new 
InterruptedStatusThread object.
- Parameters:
 name - the name of the new thread
 
InterruptedStatusThread
public InterruptedStatusThread(ThreadGroup group,
                               Runnable target,
                               String name,
                               long stackSize)
- Constructs a new 
InterruptedStatusThread object.
- Parameters:
 group - the thread grouptarget - the object whose run method is calledname - the name of the new threadstackSize - the desired stack size for the new thread, or zero to
 indicate that this parameter is to be ignored
 
interrupt
public void interrupt()
- Overrides:
 interrupt in class Thread
 
 
hasBeenInterrupted
public boolean hasBeenInterrupted()
- Method used to determine if 
interrupt has been called
 on this thread.
- Returns:
 - returns true if 
interrupt has been called on
 this thread, false otherwise. 
 
 
Copyright © GigaSpaces.