|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tranche.servers.ServerEvent
org.tranche.servers.ServerCallbackEvent
public class ServerCallbackEvent
| Field Summary | |
|---|---|
static int |
TYPE_CREATED
Code for a createion event. |
static int |
TYPE_FAILED
Code for a failure event. |
static int |
TYPE_FULFILLED
Code for a completed event. |
| Fields inherited from class org.tranche.servers.ServerEvent |
|---|
AUTO_BAN, AUTO_UNBAN, CALLBACK, CONNECT, MESSAGE, USER_BAN, USER_UNBAN |
| Constructor Summary | |
|---|---|
ServerCallbackEvent(java.lang.String url,
long id,
int type)
|
|
ServerCallbackEvent(java.lang.String url,
long id,
int type,
java.lang.String name,
java.lang.String description)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Returns the description of the callback this represents. |
long |
getId()
Returns the ID for the callback this event represents. |
java.lang.String |
getName()
Returns the name of the callback this represents. |
int |
getType()
Returns the type code for this event. |
java.lang.String |
getTypeString()
Returns the human-readable type. |
java.lang.String |
toString()
A human-readable description of this event. |
| Methods inherited from class org.tranche.servers.ServerEvent |
|---|
getTimestamp, getUrl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_CREATED
Code for a createion event.
public static final int TYPE_FULFILLED
Code for a completed event.
public static final int TYPE_FAILED
Code for a failure event.
| Constructor Detail |
|---|
public ServerCallbackEvent(java.lang.String url,
long id,
int type)
url - id - type -
public ServerCallbackEvent(java.lang.String url,
long id,
int type,
java.lang.String name,
java.lang.String description)
url - id - type - name - description - | Method Detail |
|---|
public long getId()
Returns the ID for the callback this event represents.
public int getType()
Returns the type code for this event.
getType in class ServerEventpublic java.lang.String getName()
Returns the name of the callback this represents.
public java.lang.String getDescription()
Returns the description of the callback this represents.
public java.lang.String getTypeString()
Returns the human-readable type.
getTypeString in class ServerEventpublic java.lang.String toString()
A human-readable description of this event.
toString in class ServerEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||