public class GradualBreakingQueuePolicy<T,U extends java.util.concurrent.BlockingQueue<<any>>>
extends java.lang.Object
QueuePolicy that starts breaking at a certain fill grade of the buffer.
A given grade of 100% results into a the same like the QueuePolicyOption#BLOCK| Constructor and Description |
|---|
GradualBreakingQueuePolicy(java.lang.String id,
int fillGrade,
int bufferSize,
long defaultWaitTime)
Creates a new instance.
|
GradualBreakingQueuePolicy(java.lang.String id,
int fillGrade,
long defaultWaitTime)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doOffer(U queue,
<any> event) |
GBQueuePolicyMBean |
getMBean() |
public GradualBreakingQueuePolicy(java.lang.String id,
int fillGrade,
int bufferSize,
long defaultWaitTime)
public GradualBreakingQueuePolicy(java.lang.String id,
int fillGrade,
long defaultWaitTime)
public GBQueuePolicyMBean getMBean()
public void doOffer(U queue, <any> event) throws java.lang.Exception
java.lang.ExceptionData In Motion Consulting GmbH