void closeHandle(JcaExecutorServiceConnection handle) { ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); event.setConnectionHandle(handle); for (ConnectionEventListener cel : listeners) { cel.connectionClosed(event); } } public PrintWriter getLogWriter() throws ResourceException {
private Object handleCloseMethod(Object proxy, Method method, Object[] args) { handles.remove(proxy); associatedHandle = null; ConnectionEvent event = new ConnectionEvent(ManagedConnectionImpl.this, ConnectionEvent.CONNECTION_CLOSED); event.setConnectionHandle(proxy); sendEvent(event); return null; } }
void notifyTxRollback(PersistenceManagerImpl handle) { ConnectionEvent ce = new ConnectionEvent(this, ConnectionEvent.LOCAL_TRANSACTION_ROLLEDBACK, null); ce.setConnectionHandle(handle); Collection localCels = null; synchronized (cels) { localCels = new ArrayList(cels); } for (Iterator i = localCels.iterator(); i.hasNext(); ) { ((ConnectionEventListener)i.next()).localTransactionRolledback(ce); } }
public void connectionClosed(U handle) { ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); event.setConnectionHandle(handle); //count down in case sending the event results in a handle getting removed. for (int i = listeners.size() - 1; i >= 0; i--) { ConnectionEventListener listener = listeners.get(i); listener.connectionClosed(event); } }
public void close(Object closingHandle) throws ResourceException { LOG.fine("Closing handle: " + closingHandle); ConnectionEvent coEvent = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); coEvent.setConnectionHandle(closingHandle); sendEvent(coEvent); }
void connectionClosed(XADiskConnection connection) { connectionHandles.remove(connection); ConnectionEvent connectionEvent = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); connectionEvent.setConnectionHandle(connection); raiseConnectionEvent(connectionEvent); }
void removeHandle(AzureSBConnectionImpl handle) { connectionHandles.remove(handle); ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); event.setConnectionHandle(handle); for (ConnectionEventListener listener : listeners) { listener.connectionClosed(event); } }
void removeHandle(MQTTConnectionImpl handle) { connectionHandles.remove(handle); ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); event.setConnectionHandle(handle); for (ConnectionEventListener listener : listeners) { listener.connectionClosed(event); } }
void remove(KafkaConnectionImpl conn) { connectionHandles.remove(conn); ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); event.setConnectionHandle(conn); for (ConnectionEventListener listener : listeners) { listener.connectionClosed(event); } }
void removeHandle(AmazonSQSConnection connection) { connectionHandles.remove(connection); ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); event.setConnectionHandle(connection); for (ConnectionEventListener listener : listeners) { listener.connectionClosed(event); } }
void removeHandle(AzureSBConnectionImpl handle) { connectionHandles.remove(handle); ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); event.setConnectionHandle(handle); for (ConnectionEventListener listener : listeners) { listener.connectionClosed(event); } }
/** * Close handle * * @param handle The handle */ protected void closeHandle( JcrSessionHandle handle ) { ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); event.setConnectionHandle(handle); for (ConnectionEventListener cel : listeners) { cel.connectionClosed(event); } }
/** * 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); }
void closeHandle(TwitterConnection handle) { ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); event.setConnectionHandle(handle); for (ConnectionEventListener cel : listeners) { cel.connectionClosed(event); } }
void close() { if (_listener != null) { ConnectionEvent evt; evt = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); evt.setConnectionHandle(this); _listener.connectionClosed(evt); } }
/** * @param con */ protected void detachConnection(FsConnectionImpl con) { LOG.debug("detachConnection con=" + con); con.setManagedConnection(null); connections.remove(con); final ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); event.setConnectionHandle(con); fireConnectionEvent(event); }
private void sendEvent(int type, ConnectionImpl connection, Exception cause) { ConnectionEvent event = new ConnectionEvent(this, type, cause); if (connection != null) { event.setConnectionHandle(connection); } sendEvent(event); }
/** * 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); }
@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); } }
/** * Close handle * * @param handle * The handle */ void closeHandle(VertxConnectionImpl handle) { ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); event.setConnectionHandle(handle); for (ConnectionEventListener cel : listeners) { cel.connectionClosed(event); } }