Home » geronimo-2.2-source-release » org.apache.geronimo.concurrent.thread » [javadoc | source]
org.apache.geronimo.concurrent.thread
public class: ManagedThread [javadoc | source]
java.lang.Object
   java.lang.Thread
      org.apache.geronimo.concurrent.thread.ManagedThread

All Implemented Interfaces:
    Runnable

Direct Known Subclasses:
    GeronimoManagedThread

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Nested Class Summary:
public enum class  ManagedThread.TaskState   
Field Summary
protected  ThreadLifecycleListener threadLifecycleListener     
protected  long hungTaskThreshold     
protected  String taskIdentityDescription     
protected  long startTime     
protected  ManagedTask task     
protected  TaskState state     
Fields inherited from java.lang.Thread:
threadLocals,  inheritableThreadLocals,  parkBlocker,  MIN_PRIORITY,  NORM_PRIORITY,  MAX_PRIORITY
Constructor:
 public ManagedThread(Runnable runnable,
    ThreadLifecycleListener threadLifecycleListener) 
 public ManagedThread(ThreadGroup group,
    Runnable runnable,
    String name,
    ThreadLifecycleListener threadLifecycleListener) 
Method from org.apache.geronimo.concurrent.thread.ManagedThread Summary:
cancelTask,   endTask,   getHungTaskThreshold,   getRunTime,   getTaskIdentityDescription,   getTaskIdentityDescription,   getTaskIdentityName,   getTaskRunTime,   getThreadID,   getThreadLocale,   getThreadName,   isHung,   isTaskCancelled,   isTaskHung,   isTaskRunning,   run,   setHungTaskThreshold,   setState,   setThreadLifecycleListener,   start,   startTask,   updateState
Methods from java.lang.Thread:
activeCount,   blockedOn,   checkAccess,   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 from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.concurrent.thread.ManagedThread Detail:
 public synchronized boolean cancelTask() 
    Cancel hung task.
 public  void endTask() 
    This function is assumed to be called on the same thread as when #startTask(Object) was first called.
 public long getHungTaskThreshold() 
 protected long getRunTime() 
 public String getTaskIdentityDescription() 
 public String getTaskIdentityDescription(String localeStr) 
 public String getTaskIdentityName() 
 public synchronized long getTaskRunTime() 
 public long getThreadID() 
 protected Locale getThreadLocale() 
 public String getThreadName() 
 protected boolean isHung() 
 public synchronized boolean isTaskCancelled() 
 public synchronized boolean isTaskHung() 
 public synchronized boolean isTaskRunning() 
 public  void run() 
 public  void setHungTaskThreshold(long hungTaskThreshold) 
 protected synchronized  void setState(TaskState newState) 
 public  void setThreadLifecycleListener(ThreadLifecycleListener threadLifecycleListener) 
 public  void start() 
 public  void startTask(ManagedTask task) 
    This function is assumed to be called on the same thread that is executing the task and after the right context is associated with the thread.
 public synchronized  void updateState()