|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ECLCommNotify can be used to implement an object which will receive and handle ECLConnection events. Events are generated whenever the connection status of a session changes. The connection status is either true (connected) or false (not connected). Special events are generated when event generation stops and when errors occur during event generation.
To be notified of communication events, the application must perform the following steps:
ECLConnection
Method Summary | |
---|---|
void |
NotifyError(ECLConnection connection,
ECLErr e)
The NotifyError() method is called whenever the ECLConnection object detects an error during event generation. |
void |
NotifyEvent(ECLConnection connection,
boolean connected)
The NotifyEvent() method is called whenever the connection status changes. |
void |
NotifyStop(ECLConnection connection,
int reason)
The NotifyStop() method is called when event generation is stopped for any reason. |
Method Detail |
public void NotifyEvent(ECLConnection connection, boolean connected)
connection
- The object which generated the event.connected
- Boolean value which is true if there is a
connection, otherwise it is false.public void NotifyStop(ECLConnection connection, int reason)
connection
- The object which generated the event.reason
- This parameter is not currently used.public void NotifyError(ECLConnection connection, ECLErr e)
connection
- The object which generated the event.e
- The ECLErr object containing error data.ECLErr
,
NotifyStop(com.ibm.eNetwork.ECL.ECLConnection, int)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |