|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.bankframe.ei.txnhandler.connector.EConnectionEvent
public class EConnectionEvent
The EConnectionEvent class provides information about the source of a connection related event. An EConnectionEvent instance contains the following information: Type of the connection event EManagedConnection instance that generated the connection event. An EManagedConnection instance is returned from the method EConnectionEvent.getSource. EConnection handle associated with the EManagedConnection instance; required for the CONNECTION_CLOSED event and optional for the other event types. Optionally, an exception indicating the connection related error. Note that exception is used for CONNECTION_ERROR_OCCURRED. This class defines following types of event notifications: CONNECTION_CLOSED CONNECTION_ERROR_OCCURRED
Field Summary | |
---|---|
static int |
CONNECTION_CLOSED
|
static int |
CONNECTION_ERROR_OCCURRED
|
Constructor Summary | |
---|---|
EConnectionEvent(EManagedConnection mc,
int id)
This method constructs an EConnectionEvent object. |
|
EConnectionEvent(EManagedConnection mc,
int id,
Exception ex)
This method constructs an EConnectionEvent object. |
Method Summary | |
---|---|
Object |
getConnectionHandle()
This method gets the connection handle associated with the Managed Connection instance. |
Exception |
getException()
This method gets the exception if one occurred. |
int |
getId()
This method gets the type of the event. |
void |
setConnectionHandle(Object connectionHandle)
This method sets the Connection Handle. |
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 CONNECTION_CLOSED
public static final int CONNECTION_ERROR_OCCURRED
Constructor Detail |
---|
public EConnectionEvent(EManagedConnection mc, int id)
mc
- EManagedConnection that is the source of the Eventid
- type of the EConnectionEventpublic EConnectionEvent(EManagedConnection mc, int id, Exception ex)
mc
- EManagedConnection that is the source of the Eventid
- type of the EConnectionEventex
- Exception to be thrown to the application.Method Detail |
---|
public Object getConnectionHandle()
public Exception getException()
public int getId()
public void setConnectionHandle(Object connectionHandle)
connectionHandle
- The Connection Handle object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |