Class DefaultWorkerThread

  • All Implemented Interfaces:
    java.lang.Runnable, AttributeStorage, WorkerThread

    public class DefaultWorkerThread
    extends java.lang.Thread
    implements WorkerThread
    Default Grizzly worker thread implementation
    Author:
    Alexey Stashok
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()  
      AttributeHolder getAttributes()
      Get associated AttributeHolder.
      <E> E getFromCache​(ThreadCache.CachedTypeIndex<E> index)
      Get the cached object with the given type index from cache.
      ThreadLocalPool getMemoryPool()  
      java.lang.Thread getThread()  
      long getTransactionTimeout​(java.util.concurrent.TimeUnit timeunit)  
      <E> boolean putToCache​(ThreadCache.CachedTypeIndex<E> index, E o)  
      void setTransactionTimeout​(long timeout, java.util.concurrent.TimeUnit timeunit)  
      <E> E takeFromCache​(ThreadCache.CachedTypeIndex<E> index)
      Take the cached object with the given type index from cache.
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Runnable

        run