use of javax.resource.spi.ConnectionEvent in project wildfly by wildfly.
the class HelloWorldManagedConnection method closeHandle.
/**
* Close handle
*
* @param handle The handle
*/
void closeHandle(HelloWorldConnection handle) {
ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED);
event.setConnectionHandle(handle);
for (javax.resource.spi.ConnectionEventListener cel : listeners) {
cel.connectionClosed(event);
}
}
use of javax.resource.spi.ConnectionEvent in project wildfly by wildfly.
the class MultipleManagedConnection1 method closeHandle.
/**
* Close handle
*
* @param handle The handle
*/
public void closeHandle(MultipleConnection1 handle) {
ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED);
event.setConnectionHandle(handle);
for (ConnectionEventListener cel : listeners) {
cel.connectionClosed(event);
}
}
use of javax.resource.spi.ConnectionEvent in project wildfly by wildfly.
the class ConfigPropertyManagedConnection method closeHandle.
/**
* Close handle
*
* @param handle The handle
*/
public void closeHandle(ConfigPropertyConnection handle) {
ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED);
event.setConnectionHandle(handle);
for (ConnectionEventListener cel : listeners) {
cel.connectionClosed(event);
}
}
use of javax.resource.spi.ConnectionEvent in project wildfly by wildfly.
the class LazyManagedConnection method closeHandle.
void closeHandle(LazyConnection handle) {
ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED);
event.setConnectionHandle(handle);
for (ConnectionEventListener cel : listeners) {
cel.connectionClosed(event);
}
}
use of javax.resource.spi.ConnectionEvent in project jackrabbit by apache.
the class JCAManagedConnection method sendEvent.
/**
* Send event.
*/
private void sendEvent(int type, Object handle, Exception cause) {
ConnectionEvent event = new ConnectionEvent(this, type, cause);
if (handle != null) {
event.setConnectionHandle(handle);
}
sendEvent(event);
}
Aggregations