public interface AsyncPolicy
Modifier and Type | Method and Description |
---|---|
int |
getNumThreads()
Number of background threads that will be used to
dispatch messages from the queue.
|
int |
getQueueSize()
Maximum number of messages that can be queued awaiting
for dispatch.
|
boolean |
isBlockWhenFull()
Used to control the behavior of a dispatch when the queue
is full.
|
int getQueueSize()
int getNumThreads()
boolean isBlockWhenFull()
true
the calling thread will be blocked
until the queue can accept the message, or the thread is
interrupted.
When false
the dispatch will return a future
with a RejectedExecutionException
/Copyright © 2017. All rights reserved.