| java.lang.Object | |
| ↳ | com.mongodb.util.ThreadPool<T> |
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Initializes a new thread pool with a given name and number of threads.
| |||||||||||
Initializes a new thread pool with a given name, number of threads, and queue size.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Handles a given object.
| |||||||||||
Handles a given object and exception.
| |||||||||||
Adds a new object to the pool, if possible.
| |||||||||||
Returns the size of the pool's queue.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Initializes a new thread pool with a given name and number of threads.
| name | identifying name |
|---|---|
| numThreads | the number of threads allowed in the pool |
Initializes a new thread pool with a given name, number of threads, and queue size.
| name | identifying name |
|---|---|
| numThreads | the number of threads allowed in the pool |
| maxQueueSize | the size of the pool entry queue |
Handles a given object and exception.
| t | the object to handle |
|---|---|
| e | the exception to handle |
Adds a new object to the pool, if possible.
| t | the object to be added |
|---|
Returns the size of the pool's queue.