private abstract static class ClientTracker.ClientOperation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long |
birthday_ |
private java.lang.String |
id_ |
private java.lang.String |
mtype_ |
Constructor and Description |
---|
ClientOperation(java.lang.String id,
java.lang.String mtype)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getBirthday()
Returns the creation time of this object.
|
java.lang.String |
getId()
Returns the client ID for the client this operation applies to.
|
java.lang.String |
getMType()
Returns the MType of the message which triggered this operation.
|
abstract void |
perform(ClientTracker.TrackedClient client)
Performs the instance-specific operation on a given client.
|
java.lang.String |
toString() |
private final java.lang.String id_
private final java.lang.String mtype_
private final long birthday_
ClientOperation(java.lang.String id, java.lang.String mtype)
id
- client public IDmtype
- MType of the message which triggered this operationpublic abstract void perform(ClientTracker.TrackedClient client)
client
- clientpublic java.lang.String getId()
public java.lang.String getMType()
public long getBirthday()
System.currentTimeMillis()
at constructionpublic java.lang.String toString()
toString
in class java.lang.Object