public class InfiniteCreditCreditManager extends Object implements FlowCreditManager_0_8
| Constructor and Description |
|---|
InfiniteCreditCreditManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasCredit() |
boolean |
isBytesLimited() |
boolean |
isCreditOverBatchLimit() |
boolean |
isNotBytesLimitedAndHighPrefetch() |
void |
restoreCredit(long messageCredit,
long bytesCredit) |
boolean |
useCreditForMessage(long msgSize) |
public void restoreCredit(long messageCredit,
long bytesCredit)
restoreCredit in interface FlowCreditManagerpublic boolean hasCredit()
hasCredit in interface FlowCreditManagerpublic boolean useCreditForMessage(long msgSize)
useCreditForMessage in interface FlowCreditManagerpublic boolean isNotBytesLimitedAndHighPrefetch()
isNotBytesLimitedAndHighPrefetch in interface FlowCreditManager_0_8public boolean isBytesLimited()
isBytesLimited in interface FlowCreditManager_0_8public boolean isCreditOverBatchLimit()
isCreditOverBatchLimit in interface FlowCreditManager_0_8Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.