protected class FlowControl.Credit extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
credits_left |
protected long |
last_credit_request |
protected int |
num_blockings |
protected long |
total_blocking_time |
Modifier | Constructor and Description |
---|---|
protected |
FlowControl.Credit(long credits) |
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 long |
getTotalBlockingTime() |
protected void |
increment(long credits) |
protected boolean |
needToSendCreditRequest() |
protected void |
set(long new_credits) |
String |
toString() |
protected long credits_left
protected int num_blockings
protected long total_blocking_time
protected long last_credit_request
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 getTotalBlockingTime()
protected long get()
protected void set(long new_credits)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.