com.sun.star.uno.UnoRuntime , com.sun.star.lib.uno.environments.remote.NativeThreadPool , com.sun.star.lib.uno.environments.remote.IThreadPool , com.sun.star.lib.uno.environments.remote.Job , com.sun.star.lib.uno.environments.remote.JobQueue
| Modifier and Type | Field and Description |
|---|---|
| pack-priv JavaThreadPoolFactory | |
| private static final boolean | DEBUG
When set to true, enables various debugging output. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Object | attach(ThreadId threadId)
Implements com. As above, but hands in an already existing instance of the threadid of the current thread. |
| public void | attach()
Implements com. Attaches this thread to the thread pool. |
| public void | destroy()
Implements com. Destroys the thread pool and tries to join all created threads immediately. |
| public void | detach(Object handle, ThreadId id)
Implements com. As above, but hands in an already existing instance of the threadid of the current thread and a handle returned by attach. |
| public void | detach()
Implements com. Detaches this thread from the thread pool. |
| public void | dispose(Throwable throwable)
Implements com. Disposes this thread pool, thus releasing all threads by throwing a
|
| public Object | enter()
Implements com. Lets this thread enter the thread pool. |
| public Object | enter(Object handle, ThreadId threadId)
Implements com. As above but hands in an already existing instance of the threadid of the current thread and a handle returned by attach. |
| public ThreadId | getThreadId()
Implements com. Retrieves the global threadId for the current thread. |
| public void | putJob(Job job)
Implements com. Queues a job into the jobQueue of the thread belonging to the jobs threadId. |
| _javaThreadPoolFactory | back to summary |
|---|---|
| pack-priv JavaThreadPoolFactory _javaThreadPoolFactory | |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG When set to true, enables various debugging output. | |
| JavaThreadPool | back to summary |
|---|---|
| pack-priv JavaThreadPool(JavaThreadPoolFactory javaThreadPoolFactory) | |
| attach | back to summary |
|---|---|
| public Object attach(ThreadId threadId) Implements com. Doc from com. As above, but hands in an already existing instance of the threadid of the current thread. The function exists for performance. | |
| attach | back to summary |
|---|---|
| public void attach() Implements com. Doc from com. Attaches this thread to the thread pool. | |
| destroy | back to summary |
|---|---|
| public void destroy() Implements com. Doc from com. Destroys the thread pool and tries to join all created threads immediately. | |
| detach | back to summary |
|---|---|
| public void detach(Object handle, ThreadId id) Implements com. Doc from com. As above, but hands in an already existing instance of the threadid of the current thread and a handle returned by attach. The function exists for performance. | |
| detach | back to summary |
|---|---|
| public void detach() Implements com. Doc from com. Detaches this thread from the thread pool. | |
| dispose | back to summary |
|---|---|
| public void dispose(Throwable throwable) Implements com. Doc from com. Disposes this thread pool, thus releasing all threads by throwing a
| |
| enter | back to summary |
|---|---|
| public Object enter() throws Throwable Implements com. Doc from com. Lets this thread enter the thread pool. This thread then executes all jobs put via | |
| enter | back to summary |
|---|---|
| public Object enter(Object handle, ThreadId threadId) throws Throwable Implements com. Doc from com. As above but hands in an already existing instance of the threadid of the current thread and a handle returned by attach. This thread then executes all jobs put via | |
| getThreadId | back to summary |
|---|---|
| public ThreadId getThreadId() Implements com. Doc from com. Retrieves the global threadId for the current thread. | |
| putJob | back to summary |
|---|---|
| public void putJob(Job job) Implements com. Doc from com. Queues a job into the jobQueue of the thread belonging to the jobs threadId. | |