|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RateControlledEntity
Interface designation for rate-limited entities controlled by a handler.
Field Summary | |
---|---|
static int |
PRIORITY_HIGH
Guaranteed scheduling of processing ops, with preference over normal-priority entities. |
static int |
PRIORITY_NORMAL
Uses fair round-robin scheduling of processing ops. |
Method Summary | |
---|---|
boolean |
canProcess(EventWaiter waiter)
Is ready for a processing op. |
int |
doProcessing(EventWaiter waiter,
int max_bytes_permitted)
Attempt to do a processing operation. |
long |
getBytesReadyToWrite()
|
int |
getConnectionCount(EventWaiter waiter)
If there are no connections then the waiter will be kicked when a connection arrives |
int |
getPriority()
Get this entity's priority level. |
boolean |
getPriorityBoost()
stats functions |
RateHandler |
getRateHandler()
|
int |
getReadyConnectionCount(EventWaiter waiter)
The waiter is kicked if the ready condition changes |
String |
getString()
|
Field Detail |
---|
static final int PRIORITY_NORMAL
static final int PRIORITY_HIGH
Method Detail |
---|
boolean canProcess(EventWaiter waiter)
int doProcessing(EventWaiter waiter, int max_bytes_permitted)
int getPriority()
boolean getPriorityBoost()
long getBytesReadyToWrite()
int getConnectionCount(EventWaiter waiter)
waiter
-
int getReadyConnectionCount(EventWaiter waiter)
waiter
-
RateHandler getRateHandler()
String getString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |