|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.avis.client.CloseEvent
public class CloseEvent
An event sent when the connection to the Elvin router is closed.
| Field Summary | |
|---|---|
Throwable |
error
The exception that was associated with the reason for closing. |
String |
message
The message from the router, if any, or the client's description of the reason otherwise. |
int |
reason
The reason for the shutdown: REASON_CLIENT_SHUTDOWN,
REASON_ROUTER_SHUTDOWN,
REASON_ROUTER_SHUTDOWN_UNEXPECTEDLY,
REASON_ROUTER_STOPPED_RESPONDING,
REASON_PROTOCOL_VIOLATION, REASON_IO_ERROR. |
static int |
REASON_CLIENT_SHUTDOWN
The client was shut down normally with a call to Elvin.close(). |
static int |
REASON_IO_ERROR
An I/O exception was thrown while communicating with the router. |
static int |
REASON_PROTOCOL_VIOLATION
Either the client or the router decided that the protocol rules have been violated. |
static int |
REASON_ROUTER_SHUTDOWN
The router was shut down normally. |
static int |
REASON_ROUTER_SHUTDOWN_UNEXPECTEDLY
The network connection to the router was terminated abnormally without the standard shutdown protocol. |
static int |
REASON_ROUTER_STOPPED_RESPONDING
The router failed to respond to a liveness check. |
| Constructor Summary | |
|---|---|
CloseEvent(Object source,
int reason,
String message,
Throwable error)
|
|
| Method Summary |
|---|
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int REASON_CLIENT_SHUTDOWN
Elvin.close().
public static final int REASON_ROUTER_SHUTDOWN
public static final int REASON_ROUTER_STOPPED_RESPONDING
public static final int REASON_ROUTER_SHUTDOWN_UNEXPECTEDLY
public static final int REASON_PROTOCOL_VIOLATION
public static final int REASON_IO_ERROR
public final int reason
REASON_CLIENT_SHUTDOWN,
REASON_ROUTER_SHUTDOWN,
REASON_ROUTER_SHUTDOWN_UNEXPECTEDLY,
REASON_ROUTER_STOPPED_RESPONDING,
REASON_PROTOCOL_VIOLATION, REASON_IO_ERROR.
public final String message
public final Throwable error
| Constructor Detail |
|---|
public CloseEvent(Object source,
int reason,
String message,
Throwable error)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||