/** * Removes the given listener from the wrapped connection. */ @Override public void removeConnectionListener(SailConnectionListener listener) { getWrappedConnection().removeConnectionListener(listener); } }
/** * Removes the given listener from the wrapped connection. */ @Override public void removeConnectionListener(SailConnectionListener listener) { getWrappedConnection().removeConnectionListener(listener); } }
@Override public synchronized void clear(Resource... resources) throws SailException { // remove the connection listener, this is safe as the changing methods // are synchronized // during the clear(), no other operation can be invoked getWrappedConnection().removeConnectionListener(connectionListener); try { super.clear(resources); buffer.clear(resources); } finally { getWrappedConnection().addConnectionListener(connectionListener); } }
@Override public synchronized void clear(Resource... contexts) throws SailException { // remove the connection listener, this is safe as the changing methods // are synchronized // during the clear(), no other operation can be invoked getWrappedConnection().removeConnectionListener(connectionListener); try { super.clear(contexts); buffer.clear(contexts); } finally { getWrappedConnection().addConnectionListener(connectionListener); } }