Class ProtonLinkCreditState
java.lang.Object
org.apache.qpid.protonj2.engine.impl.ProtonLinkCreditState
- All Implemented Interfaces:
- LinkCreditState
Holds the current credit state for a given link.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintThe currently available credit for this linkintThe current delivery count value for this linkbooleanisDrain()booleanisEcho()voidupdateCredit(int effectiveCredit) voidupdateDeliveryCount(int deliveryCount) 
- 
Constructor Details- 
ProtonLinkCreditStatepublic ProtonLinkCreditState()
- 
ProtonLinkCreditStatepublic ProtonLinkCreditState(int deliveryCount) 
 
- 
- 
Method Details- 
getCreditpublic int getCredit()Description copied from interface:LinkCreditStateThe currently available credit for this link- Specified by:
- getCreditin interface- LinkCreditState
- Returns:
- the current amount of link credit
 
- 
getDeliveryCountpublic int getDeliveryCount()Description copied from interface:LinkCreditStateThe current delivery count value for this link- Specified by:
- getDeliveryCountin interface- LinkCreditState
- Returns:
- the current delivery count value for the link.
 
- 
isDrainpublic boolean isDrain()- Specified by:
- isDrainin interface- LinkCreditState
- Returns:
- true if the link drain is active.
 
- 
isEchopublic boolean isEcho()- Specified by:
- isEchoin interface- LinkCreditState
- Returns:
- true if the link has been requested to echo its state.
 
- 
updateCreditpublic void updateCredit(int effectiveCredit) 
- 
updateDeliveryCountpublic void updateDeliveryCount(int deliveryCount) 
 
-