/** * Allows other member of this package to access the listener. This is mainly needed for * deregistering a listener. * <p> * @return IRemoteCacheListener, the listener for this remote server */ @Override public IRemoteCacheListener<K, V> getListener() { return getRemoteCacheListener(); }
/** * Allows other member of this package to access the listener. This is mainly needed for * deregistering a listener. * <p> * @return IRemoteCacheListener, the listener for this remote server */ @Override public IRemoteCacheListener<K, V> getListener() { return getRemoteCacheListener(); }
/** * let the remote cache set a listener_id. Since there is only one listener for all the regions * and every region gets registered? the id shouldn't be set if it isn't zero. If it is we * assume that it is a reconnect. * <p> * @param id The new listenerId value */ public void setListenerId( long id ) { if ( getRemoteCacheListener() != null ) { try { getRemoteCacheListener().setListenerId( id ); if ( log.isDebugEnabled() ) { log.debug( "set listenerId = " + id ); } } catch ( Exception e ) { log.error( "Problem setting listenerId", e ); } } }
/** * Gets the listenerId attribute of the RemoteCacheListener object * <p> * @return The listenerId value */ @Override public long getListenerId() { if ( getRemoteCacheListener() != null ) { try { if ( log.isDebugEnabled() ) { log.debug( "get listenerId = " + getRemoteCacheListener().getListenerId() ); } return getRemoteCacheListener().getListenerId(); } catch ( Exception e ) { log.error( "Problem getting listenerId", e ); } } return -1; }
/** * let the remote cache set a listener_id. Since there is only one listener for all the regions * and every region gets registered? the id shouldn't be set if it isn't zero. If it is we * assume that it is a reconnect. * <p> * @param id The new listenerId value */ public void setListenerId( long id ) { if ( getRemoteCacheListener() != null ) { try { getRemoteCacheListener().setListenerId( id ); if ( log.isDebugEnabled() ) { log.debug( "set listenerId = " + id ); } } catch ( Exception e ) { log.error( "Problem setting listenerId", e ); } } }
/** * Gets the listenerId attribute of the RemoteCacheListener object * <p> * @return The listenerId value */ @Override public long getListenerId() { if ( getRemoteCacheListener() != null ) { try { if ( log.isDebugEnabled() ) { log.debug( "get listenerId = " + getRemoteCacheListener().getListenerId() ); } return getRemoteCacheListener().getListenerId(); } catch ( Exception e ) { log.error( "Problem getting listenerId", e ); } } return -1; }
/** * Synchronously dispose the remote cache; if failed, replace the remote handle with a zombie. * <p> * @throws IOException */ @Override protected void processDispose() throws IOException { if ( log.isInfoEnabled() ) { log.info( "Disposing of remote cache." ); } try { if ( getRemoteCacheListener() != null ) { getRemoteCacheListener().dispose(); } } catch ( Exception ex ) { log.error( "Couldn't dispose", ex ); handleException( ex, "Failed to dispose [" + cacheName + "]", ICacheEventLogger.DISPOSE_EVENT ); } }
/** * Synchronously dispose the remote cache; if failed, replace the remote handle with a zombie. * <p> * @throws IOException */ @Override protected void processDispose() throws IOException { if ( log.isInfoEnabled() ) { log.info( "Disposing of remote cache." ); } try { if ( getRemoteCacheListener() != null ) { getRemoteCacheListener().dispose(); } } catch ( Exception ex ) { log.error( "Couldn't dispose", ex ); handleException( ex, "Failed to dispose [" + cacheName + "]", ICacheEventLogger.DISPOSE_EVENT ); } }