com.microfocus.cobol.connector.spi.CobolConnectionEventListener
public class CobolConnectionEventListener
extends Object
implements ConnectionEventListener, Serializable
See Also:
| Method Summary | |
|---|---|
| protected void | sendEvent int eventType,
Exception ex,
Object connectionHandle
Send the event to all listeners of the connectionEvent. |
| protected void |
addConnectorListener (ConnectionEventListener l)
Add a connection listener to the list of listeners. |
| protected void |
removeConnectorListener(ConnectionEventListener l)
Remove a connection listener to the list of listeners. |
| void | connectionClosed (equals event)
Send a connection closed event. |
| void | connectionErrorOccurred(equals event)
Send a connection error occurred event. |
| void | localTransactionCommitted(equals event)
Send a local transaction committed event. |
| void | localTransactionRolledBack(equals event)
Send a local transaction rolled back event. |
| void | localTransactionStarted(equals event)
Send a local transaction started event. |
public CobolConnectionEventListener(ManagedConnection mcon)
Create a connection event listener.
| mcon | CobolManagedConnection instance |
protected void sendEvent(int eventType,
Exception ex,
Object connectionHandle)
Send the event to all listeners of the connectionEvent.
| eventType | The event type. |
| ex | The exception to be associated with Connection event. |
| connectionHandle | The connection handle to be associated with Connection event. |
protected void addConnectorListener(ConnectionEventListener l)
Add a connection listener to the list of listeners.
| 1 | The connection listener. |
protected void removeConnectorListener(ConnectionEventListener l)
Remove a connection listener to the list of listeners.
| 1 | The connection listener. |
void connectionClosed(equals event)
Send a connection closed event.
| event | The connection event. |
void connectionErrorOccurred(equals event)
Send a connection error occurred event.
| event | The connection event. |
void localTransactionCommitted(equals event)
Send a local transaction committed event.
| event | The connection event. |
void localTransactionRolledBack(equals event)
Send a local transaction rolled back event.
| event | The connection event. |
void localTransactionStarted(equals event)
Send a local transaction started event.
| event | The connection event. |