Package com.sun.jna
Class CallbackThreadInitializer
java.lang.Object
com.sun.jna.CallbackThreadInitializer
- 
Constructor SummaryConstructorsConstructorDescriptionThe 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, String name) Uses the default thread group.CallbackThreadInitializer(boolean daemon, boolean detach, String name, ThreadGroup group) Specify all aspects of how the callback thread should be initialized.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns whether the Thread should be detached from the VM after the callback exits, if the thread was not already attached to begin with.Returns the desired name for this thread, or null for the default.Returns the desired ThreadGroup for thread, or null for the default.booleanReturns whether the callback thread should be a daemon thread.
- 
Constructor Details- 
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.
- 
CallbackThreadInitializerUses the default thread group.
- 
CallbackThreadInitializerSpecify all aspects of how the callback thread should be initialized.
 
- 
- 
Method Details- 
getNameReturns the desired name for this thread, or null for the default.
- 
getThreadGroupReturns the desired ThreadGroup for thread, or null for the default.
- 
isDaemonReturns whether the callback thread should be a daemon thread.
- 
detachReturns whether the Thread should be detached from the VM after the callback exits, if the thread was not already attached to begin with.
 
-