Example usage for javax.resource.spi ConnectionEvent ConnectionEvent

List of usage examples for javax.resource.spi ConnectionEvent ConnectionEvent

Introduction

In this page you can find the example usage for javax.resource.spi ConnectionEvent ConnectionEvent.

Prototype

public ConnectionEvent(ManagedConnection source, int eid) 

Source Link

Document

Construct a ConnectionEvent object.

Usage

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  ww . ja  va2s  .  c o  m*/
    }
}

From source file:eu.luminis.httpjca.HttpManagedConnection.java

/**
 * Close handle// ww w. jav  a2 s  .com
 *
 * @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  a  va  2  s  . c o m
}