public class DMessageCounter extends Object implements DProtocolNotifierIF
Constructor and Description |
---|
DMessageCounter() |
Modifier and Type | Method and Description |
---|---|
void |
clearInCounts() |
void |
clearOutCounts() |
void |
disconnected()
Issued when the socket connection to the player is cut
|
long |
getInCount(int type) |
Object |
getInLock()
Returns the object on which external code can call "wait" in order
to block until a message is received.
|
long |
getIsolateInCount(long isolate,
int type) |
Object |
getIsolateInLock(long isolate) |
long |
getIsolateOutCount(long isolate,
int type) |
long |
getOutCount(int type) |
Object |
getOutLock()
Returns the object on which external code can call "wait" in order
to block until a message is sent.
|
void |
messageArrived(DMessage msg,
DProtocol which)
Collect stats on the messages
|
void |
messageSent(DMessage msg)
Collect stats on outgoing messages
|
void |
setIsolate(boolean value) |
public void disconnected()
DProtocolNotifierIF
disconnected
in interface DProtocolNotifierIF
public Object getInLock()
public Object getOutLock()
public void messageSent(DMessage msg)
public void setIsolate(boolean value)
public void messageArrived(DMessage msg, DProtocol which)
messageArrived
in interface DProtocolNotifierIF
public long getInCount(int type)
public long getOutCount(int type)
public long getIsolateInCount(long isolate, int type)
public long getIsolateOutCount(long isolate, int type)
public Object getIsolateInLock(long isolate)
public void clearInCounts()
public void clearOutCounts()
Copyright © 2016 The Apache Software Foundation. All rights reserved.