Package com.sun.jna
Class CallbackThreadInitializer
- java.lang.Object
- 
- com.sun.jna.CallbackThreadInitializer
 
- 
 public class CallbackThreadInitializer extends java.lang.Object
- 
- 
Constructor SummaryConstructors Constructor Description CallbackThreadInitializer()The default initializer causes the callback thread to remain attached as a daemon thread, using the default thread name and group.CallbackThreadInitializer(boolean daemon)Keep the callback thread attached, with the given daemon state, using the default thread name and group.CallbackThreadInitializer(boolean daemon, boolean detach)Uses the default thread name and group.CallbackThreadInitializer(boolean daemon, boolean detach, java.lang.String name)Uses the default thread group.CallbackThreadInitializer(boolean daemon, boolean detach, java.lang.String name, java.lang.ThreadGroup group)Specify all aspects of how the callback thread should be initialized.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandetach(Callback cb)Returns whether the Thread should be detached from the VM after the callback exits, if the thread was not already attached to begin with.java.lang.StringgetName(Callback cb)Returns the desired name for this thread, or null for the default.java.lang.ThreadGroupgetThreadGroup(Callback cb)Returns the desired ThreadGroup for thread, or null for the default.booleanisDaemon(Callback cb)Returns whether the callback thread should be a daemon thread.
 
- 
- 
- 
Constructor Detail- 
CallbackThreadInitializerpublic CallbackThreadInitializer() The default initializer causes the callback thread to remain attached as a daemon thread, using the default thread name and group.
 - 
CallbackThreadInitializerpublic CallbackThreadInitializer(boolean daemon) Keep the callback thread attached, with the given daemon state, using the default thread name and group.
 - 
CallbackThreadInitializerpublic CallbackThreadInitializer(boolean daemon, boolean detach)Uses the default thread name and group.
 - 
CallbackThreadInitializerpublic CallbackThreadInitializer(boolean daemon, boolean detach, java.lang.String name)Uses the default thread group.
 - 
CallbackThreadInitializerpublic CallbackThreadInitializer(boolean daemon, boolean detach, java.lang.String name, java.lang.ThreadGroup group)Specify all aspects of how the callback thread should be initialized.
 
- 
 - 
Method Detail- 
getNamepublic java.lang.String getName(Callback cb) Returns the desired name for this thread, or null for the default.
 - 
getThreadGrouppublic java.lang.ThreadGroup getThreadGroup(Callback cb) Returns the desired ThreadGroup for thread, or null for the default.
 - 
isDaemonpublic boolean isDaemon(Callback cb) Returns whether the callback thread should be a daemon thread.
 - 
detachpublic boolean detach(Callback cb) Returns whether the Thread should be detached from the VM after the callback exits, if the thread was not already attached to begin with.
 
- 
 
-