ehcache

net.sf.ehcache.constructs.nonstop
Class NonstopThread

java.lang.Object
  extended by java.lang.Thread
      extended by net.sf.ehcache.constructs.nonstop.NonstopThread
All Implemented Interfaces:
Runnable

public class NonstopThread
extends Thread

Thread used for doing nonstop operations

Author:
Abhishek Sanoujam

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
NonstopThread(Runnable target, String name)
          Public constructor
 
Method Summary
static boolean isCurrentThreadNonstopThread()
          Find out if current executing thread is a nonstop thread
 
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, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NonstopThread

public NonstopThread(Runnable target,
                     String name)
Public constructor

Parameters:
target - the runnable to execute
name - name of the threads
Method Detail

isCurrentThreadNonstopThread

public static boolean isCurrentThreadNonstopThread()
Find out if current executing thread is a nonstop thread

Returns:
true if current thread is an instance of this thread, otherwise returns false

ehcache

Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.