com.kuka.common
Class NamedSingleThreadFactory

java.lang.Object
  extended by com.kuka.common.NamedThreadFactory
      extended by com.kuka.common.NamedSingleThreadFactory
All Implemented Interfaces:
ThreadFactory

public class NamedSingleThreadFactory
extends NamedThreadFactory

Thread Factory whose threads are named. This thread factory is intended to only create one thread at a time.

This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

Constructor Summary
NamedSingleThreadFactory(String threadFactoryName, boolean daemon, int priority, Thread.UncaughtExceptionHandler exceptionHandler)
          Creates a new thread factory with the specified name and priority.
 
Method Summary
 void killCurrentThread()
          Kills the currently running thread.
 Thread newThread(Runnable r)
           
 
Methods inherited from class com.kuka.common.NamedThreadFactory
getExceptionHandler, getNamePrefix, getThreadGroup, getThreadPriority, isDaemon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedSingleThreadFactory

public NamedSingleThreadFactory(String threadFactoryName,
                                boolean daemon,
                                int priority,
                                Thread.UncaughtExceptionHandler exceptionHandler)
Creates a new thread factory with the specified name and priority.

Parameters:
threadFactoryName - name of the thread factory.
priority - the priority of the threads.
daemon - indicates whether all threads of this factory are daemon threads or not.
exceptionHandler - unhandled exception handler for the pool threads, if set to null default handler which just logs the exception will be used.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.
Method Detail

newThread

public Thread newThread(Runnable r)
Specified by:
newThread in interface ThreadFactory
Overrides:
newThread in class NamedThreadFactory

killCurrentThread

public void killCurrentThread()
Kills the currently running thread.

WARNING:

This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.


Copyright © 2019. All rights reserved.