org.objectweb.carol.rmi.jrmp.server
Interface JUnicastThreadFactory
public interface JUnicastThreadFactory
Generic interface for getting threads, modeled after Enhydra
ThreadClientService interface. This allows the com.lutris.eas.rmi.server code
to be portable across app servers.
Thread | getThread(Runnable target) - Get a thread for the client.
|
Thread | getThread(Runnable target, String name) - Get a thread for the client.
|
Thread | getThread(ThreadGroup group, Runnable target) - Get a thread for the client.
|
Thread | getThread(ThreadGroup group, Runnable target, String name) - Get a thread for the client.
|
getThread
public Thread getThread(Runnable target)
throws IOException
Get a thread for the client. This thread will belong to the client's
thread group.
target
- the Runnable object that will use this thread.
- the Thread that the client can now use.
getThread
public Thread getThread(Runnable target,
String name)
throws IOException
Get a thread for the client. This thread will belong to the client's
thread group.
target
- the Runnable object that will use this thread.name
- the name of the thread. If a null
value is given
an arbitrary name will be provided
- the Thread that the client can now use.
getThread
public Thread getThread(ThreadGroup group,
Runnable target)
throws IOException
Get a thread for the client. This thread will belong to the the specified
thread group, or the client's thread group if none is specified.
group
- the ThreadGroup to which the new thread will be added. If
null
the new thread is added to the same thread
group as the currently executing thread.target
- the Runnable object that will use this thread.
- the Thread that the client can now use.
getThread
public Thread getThread(ThreadGroup group,
Runnable target,
String name)
throws IOException
Get a thread for the client. This thread will belong to the the specified
thread group, or the client's thread group if none is specified.
group
- the ThreadGroup to which the new thread will be added. If
null
the new thread is added to the same thread
group as the currently executing thread.target
- the Runnable object that will use this thread.name
- the String name ofthe new thread. If a null
value is given an arbitrary name will be provided.
- the Thread that the client can now use.