List of usage examples for javax.resource.spi ConnectionEvent setConnectionHandle
public void setConnectionHandle(Object connectionHandle)
From source file:com.googlecode.cassandra.jca.managed.connection.CassandraManagedConnection.java
@Override public void close() { // logger.info("void close()"); // logger.info("this = " + this); ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); event.setConnectionHandle(cassandraConnection); for (ConnectionEventListener cel : listeners) { cel.connectionClosed(event);/*from w w w . j ava 2s . com*/ } }
From source file:eu.luminis.httpjca.HttpManagedConnection.java
/** * Close handle/*from ww w . j ava 2 s. c o m*/ * * @param handle The handle */ void closeHandle(HttpConnection handle) { ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); event.setConnectionHandle(handle); for (ConnectionEventListener cel : listeners) { cel.connectionClosed(event); } }
From source file:org.apache.webdav.connector.WebDAVManagedConnection.java
public void close() { ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); event.setConnectionHandle(connection); for (Iterator it = listeners.iterator(); it.hasNext();) { ((ConnectionEventListener) it.next()).connectionClosed(event); }/* w w w. j av a 2 s . c o m*/ }
From source file:org.eclipse.ecr.core.storage.sql.ra.ManagedConnectionImpl.java
private void sendEvent(int type, ConnectionImpl connection, Exception cause) { ConnectionEvent event = new ConnectionEvent(this, type, cause); if (connection != null) { event.setConnectionHandle(connection); }//from w w w . j a v a 2 s .c om sendEvent(event); }
From source file:org.nuxeo.ecm.core.jca.JCAManagedConnection.java
/** * Send event./*from ww w . ja va 2 s .c o m*/ */ private void sendEvent(int type, Object handle, Exception cause) { ConnectionEvent event = new ConnectionEvent(this, type, cause); if (handle != null) { event.setConnectionHandle(handle); } sendEvent(event); }