Search in sources :

Example 1 with ConnectionEvent

use of javax.resource.spi.ConnectionEvent in project wildfly by wildfly.

the class MultipleManagedConnection2 method closeHandle.

/**
     * Close handle
     *
     * @param handle The handle
     */
public void closeHandle(MultipleConnection2 handle) {
    ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED);
    event.setConnectionHandle(handle);
    for (ConnectionEventListener cel : listeners) {
        cel.connectionClosed(event);
    }
}
Also used : ConnectionEvent(javax.resource.spi.ConnectionEvent) ConnectionEventListener(javax.resource.spi.ConnectionEventListener)

Example 2 with ConnectionEvent

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);
    }
}
Also used : ConnectionEvent(javax.resource.spi.ConnectionEvent) ConnectionEventListener(javax.resource.spi.ConnectionEventListener)

Example 3 with ConnectionEvent

use of javax.resource.spi.ConnectionEvent in project wildfly by wildfly.

the class MultipleManagedConnection2 method closeHandle.

/**
     * Close handle
     *
     * @param handle The handle
     */
public void closeHandle(MultipleConnection2 handle) {
    ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED);
    event.setConnectionHandle(handle);
    for (ConnectionEventListener cel : listeners) {
        cel.connectionClosed(event);
    }
}
Also used : ConnectionEvent(javax.resource.spi.ConnectionEvent) ConnectionEventListener(javax.resource.spi.ConnectionEventListener)

Example 4 with ConnectionEvent

use of javax.resource.spi.ConnectionEvent in project wildfly by wildfly.

the class AnnoManagedConnection1 method closeHandle.

/**
     * Close handle
     *
     * @param handle The handle
     */
void closeHandle(AnnoConnection1 handle) {
    ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED);
    event.setConnectionHandle(handle);
    for (ConnectionEventListener cel : listeners) {
        cel.connectionClosed(event);
    }
}
Also used : ConnectionEvent(javax.resource.spi.ConnectionEvent) ConnectionEventListener(javax.resource.spi.ConnectionEventListener)

Example 5 with ConnectionEvent

use of javax.resource.spi.ConnectionEvent in project wildfly by wildfly.

the class ValidManagedConnection method closeHandle.

/**
     * Close handle
     *
     * @param handle The handle
     */
public void closeHandle(ValidConnection handle) {
    ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED);
    event.setConnectionHandle(handle);
    for (ConnectionEventListener cel : listeners) {
        cel.connectionClosed(event);
    }
}
Also used : ConnectionEvent(javax.resource.spi.ConnectionEvent) ConnectionEventListener(javax.resource.spi.ConnectionEventListener)

Aggregations

ConnectionEvent (javax.resource.spi.ConnectionEvent)24 ConnectionEventListener (javax.resource.spi.ConnectionEventListener)21 Test (org.junit.Test)5 BadConnectionEventListener (com.sun.appserv.connectors.internal.spi.BadConnectionEventListener)1 GFConnectionImpl (org.apache.geode.internal.ra.GFConnectionImpl)1