PushbackPolicyOption provides a standard set of simple
PushbackPolicy implementations.
PushbackPolicy
| Modifier and Type | Field and Description |
|---|---|
| public static final PushbackPolicyOption | FIXED
Returns a fixed amount of back pressure, independent of how full the buffer is |
| public static final PushbackPolicyOption | LINEAR
Returns zero back pressure when the buffer is empty, then it returns a linearly increasing amount of back pressure based on how full the buffer is. |
| public static final PushbackPolicyOption | ON_FULL_EXPONENTIAL
Returns zero back pressure until the buffer is full, then it returns an exponentially increasing amount, starting with the supplied value and doubling it each time. |
| public static final PushbackPolicyOption | ON_FULL_FIXED
Returns zero back pressure until the buffer is full, then it returns a fixed value |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public abstract <T, U extends BlockingQueue | Returns: APushbackPolicy to useCreate a |
| public static PushbackPolicyOption | |
| public static PushbackPolicyOption[] |
| FIXED | back to summary |
|---|---|
| public static final PushbackPolicyOption FIXED Returns a fixed amount of back pressure, independent of how full the buffer is | |
| LINEAR | back to summary |
|---|---|
| public static final PushbackPolicyOption LINEAR Returns zero back pressure when the buffer is empty, then it returns a linearly increasing amount of back pressure based on how full the buffer is. The maximum value will be returned when the buffer is full. | |
| ON_FULL_EXPONENTIAL | back to summary |
|---|---|
| public static final PushbackPolicyOption ON_FULL_EXPONENTIAL Returns zero back pressure until the buffer is full, then it returns an exponentially increasing amount, starting with the supplied value and doubling it each time. Once the buffer is no longer full the back pressure returns to zero. | |
| ON_FULL_FIXED | back to summary |
|---|---|
| public static final PushbackPolicyOption ON_FULL_FIXED Returns zero back pressure until the buffer is full, then it returns a fixed value | |
| PushbackPolicyOption | back to summary |
|---|---|
| private PushbackPolicyOption() | |
| getPolicy | back to summary |
|---|---|
| public abstract <T, U extends BlockingQueue Create a
| |
| valueOf | back to summary |
|---|---|
| public static PushbackPolicyOption valueOf(String name) | |
| values | back to summary |
|---|---|
| public static PushbackPolicyOption[] values() | |