Top Fields Constructors Methods
com.sun.jna

public Class CallbackThreadInitializer

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private boolean
private boolean
private ThreadGroup
private String

Constructor Summary

AccessConstructor and Description
public
CallbackThreadInitializer()

The default initializer causes the callback thread to remain attached as a daemon thread, using the default thread name and group.

public
CallbackThreadInitializer(boolean daemon)

Keep the callback thread attached, with the given daemon state, using the default thread name and group.

public
CallbackThreadInitializer(boolean daemon, boolean detach)

Uses the default thread name and group.

public
CallbackThreadInitializer(boolean daemon, boolean detach, String name)

Uses the default thread group.

public
CallbackThreadInitializer(boolean daemon, boolean detach, String name, ThreadGroup group)

Specify all aspects of how the callback thread should be initialized.

Method Summary

Modifier and TypeMethod and Description
public 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.

public String
getName(Callback cb)

Returns the desired name for this thread, or null for the default.

public ThreadGroup
getThreadGroup(Callback cb)

Returns the desired ThreadGroup for thread, or null for the default.

public boolean
isDaemon(Callback cb)

Returns whether the callback thread should be a daemon thread.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

daemonback to summary
private boolean daemon
detachback to summary
private boolean detach
groupback to summary
private ThreadGroup group
nameback to summary
private String name

Constructor Detail

CallbackThreadInitializerback to summary
public CallbackThreadInitializer()

The default initializer causes the callback thread to remain attached as a daemon thread, using the default thread name and group.

CallbackThreadInitializerback to summary
public CallbackThreadInitializer(boolean daemon)

Keep the callback thread attached, with the given daemon state, using the default thread name and group.

CallbackThreadInitializerback to summary
public CallbackThreadInitializer(boolean daemon, boolean detach)

Uses the default thread name and group.

CallbackThreadInitializerback to summary
public CallbackThreadInitializer(boolean daemon, boolean detach, String name)

Uses the default thread group.

CallbackThreadInitializerback to summary
public CallbackThreadInitializer(boolean daemon, boolean detach, String name, ThreadGroup group)

Specify all aspects of how the callback thread should be initialized.

Method Detail

detachback to summary
public 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.

getNameback to summary
public String getName(Callback cb)

Returns the desired name for this thread, or null for the default.

getThreadGroupback to summary
public ThreadGroup getThreadGroup(Callback cb)

Returns the desired ThreadGroup for thread, or null for the default.

isDaemonback to summary
public boolean isDaemon(Callback cb)

Returns whether the callback thread should be a daemon thread.