public interface IThreadPool
com.sun.star.lib.uno.environments.remote.ThreadPoolFactory,
com.sun.star.lib.uno.environments.remote.IThreadPoolFactory| Modifier and Type | Method and Description |
|---|---|
void |
attach()
Attaches this thread to the thread pool.
|
java.lang.Object |
attach(ThreadId id)
As above, but hands in an already existing
instance of the threadid of the current thread.
|
void |
destroy()
Destroys the thread pool and tries
to join all created threads immediatly.
|
void |
detach()
Detaches this thread from the thread pool.
|
void |
detach(java.lang.Object handle,
ThreadId id)
As above, but hands in an already existing
instance of the threadid of the current thread
and a handle returned by attach.
|
void |
dispose(java.lang.Throwable throwable)
Disposes this thread pool, thus releasing
all threads by throwing a
DisposedException with the given
Throwable cause. |
java.lang.Object |
enter()
Lets this thread enter the thread pool.
|
java.lang.Object |
enter(java.lang.Object handle,
ThreadId id)
as above but hands in an already existing
instance of the threadid of the current thread
and a handle returned by attach.
|
ThreadId |
getThreadId()
Retrieves the global threadId for the current thread.
|
void |
putJob(Job job)
Queues a job into the jobQueue of the thread belonging
to the jobs threadId.
|
ThreadId getThreadId()
void attach()
enter()java.lang.Object attach(ThreadId id)
The function exists for performance optimization reasons.
attach()void detach()
enter()void detach(java.lang.Object handle,
ThreadId id)
#attach,#detachjava.lang.Object enter()
throws java.lang.Throwable
putJob until a reply job arrives.
java.lang.ThrowableputJob(com.sun.star.lib.uno.environments.remote.Job)java.lang.Object enter(java.lang.Object handle,
ThreadId id)
throws java.lang.Throwable
putJob until a reply job arrives.
java.lang.ThrowableputJob(com.sun.star.lib.uno.environments.remote.Job)void putJob(Job job)
job - the jobvoid dispose(java.lang.Throwable throwable)
DisposedException with the given
Throwable cause.
throwing - the causevoid destroy()