protected class FlowControl.Credit
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Average |
avg_blockings |
protected long |
credits_left |
protected long |
last_credit_request |
protected int |
num_blockings |
Modifier | Constructor and Description |
---|---|
protected |
Credit(long credits,
Average avg_blockings) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
decrement(long credits) |
protected long |
decrementAndGet(long credits) |
protected boolean |
decrementIfEnoughCredits(long credits,
long timeout) |
protected long |
get() |
protected int |
getNumBlockings() |
protected void |
increment(long credits) |
protected boolean |
needToSendCreditRequest() |
void |
reset() |
protected void |
set(long new_credits) |
java.lang.String |
toString() |
protected long credits_left
protected int num_blockings
protected long last_credit_request
protected final Average avg_blockings
protected Credit(long credits, Average avg_blockings)
public void reset()
protected boolean decrementIfEnoughCredits(long credits, long timeout)
protected boolean decrement(long credits)
protected long decrementAndGet(long credits)
protected void increment(long credits)
protected boolean needToSendCreditRequest()
protected int getNumBlockings()
protected long get()
protected void set(long new_credits)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 1998-2020 Red Hat. All Rights Reserved.