/** * @return Returns the AuxiliaryCacheAttributes. */ @Override public AuxiliaryCacheAttributes getAuxiliaryCacheAttributes() { return getRemoteCacheAttributes(); }
/** * @return Returns the AuxiliaryCacheAttributes. */ @Override public AuxiliaryCacheAttributes getAuxiliaryCacheAttributes() { return getRemoteCacheAttributes(); }
throws IOException int timeout = getRemoteCacheAttributes().getGetTimeoutMillis();
throws IOException int timeout = getRemoteCacheAttributes().getGetTimeoutMillis();
log.debug( "irca = " + getRemoteCacheAttributes() ); log.debug( "remote = " + remote ); log.debug( "listener = " + listener ); log.debug( "GetTimeoutMillis() = " + getRemoteCacheAttributes().getGetTimeoutMillis() ); if ( getRemoteCacheAttributes().getGetTimeoutMillis() > 0 ) pool = ThreadPoolManager.getInstance().getPool( getRemoteCacheAttributes().getThreadPoolName() ); if ( log.isDebugEnabled() )
log.debug( "irca = " + getRemoteCacheAttributes() ); log.debug( "remote = " + remote ); log.debug( "listener = " + listener ); log.debug( "GetTimeoutMillis() = " + getRemoteCacheAttributes().getGetTimeoutMillis() ); if ( getRemoteCacheAttributes().getGetTimeoutMillis() > 0 ) pool = ThreadPoolManager.getInstance().getPool( getRemoteCacheAttributes().getThreadPoolName() ); if ( log.isDebugEnabled() )
elems.add(new StatElement<String>( "Remote Type", this.getRemoteCacheAttributes().getRemoteTypeName() ) );
elems.add(new StatElement<String>( "Remote Type", this.getRemoteCacheAttributes().getRemoteTypeName() ) );
/** * Synchronously remove from the remote cache; if failed, replace the remote handle with a * zombie. * <p> * @param key * @return boolean, whether or not the item was removed * @throws IOException */ @Override protected boolean processRemove( K key ) throws IOException { if ( !this.getRemoteCacheAttributes().getGetOnly() ) { if ( log.isDebugEnabled() ) { log.debug( "remove> key=" + key ); } try { getRemoteCacheService().remove( cacheName, key, getListenerId() ); } catch ( Exception ex ) { handleException( ex, "Failed to remove " + key + " from " + cacheName, ICacheEventLogger.REMOVE_EVENT ); } return true; } return false; }
if ( this.getRemoteCacheAttributes().getRemoteType() != RemoteType.CLUSTER )
if ( this.getRemoteCacheAttributes().getRemoteType() != RemoteType.CLUSTER )
/** * Synchronously remove from the remote cache; if failed, replace the remote handle with a * zombie. * <p> * @param key * @return boolean, whether or not the item was removed * @throws IOException */ @Override protected boolean processRemove( K key ) throws IOException { if ( !this.getRemoteCacheAttributes().getGetOnly() ) { if ( log.isDebugEnabled() ) { log.debug( "remove> key=" + key ); } try { getRemoteCacheService().remove( cacheName, key, getListenerId() ); } catch ( Exception ex ) { handleException( ex, "Failed to remove " + key + " from " + cacheName, ICacheEventLogger.REMOVE_EVENT ); } return true; } return false; }
throws IOException if ( !getRemoteCacheAttributes().getGetOnly() )
throws IOException if ( !getRemoteCacheAttributes().getGetOnly() )
/** * Synchronously removeAll from the remote cache; if failed, replace the remote handle with a * zombie. * <p> * @throws IOException */ @Override protected void processRemoveAll() throws IOException { if ( !this.getRemoteCacheAttributes().getGetOnly() ) { try { getRemoteCacheService().removeAll( cacheName, getListenerId() ); } catch ( Exception ex ) { handleException( ex, "Failed to remove all from " + cacheName, ICacheEventLogger.REMOVEALL_EVENT ); } } }
/** * Synchronously removeAll from the remote cache; if failed, replace the remote handle with a * zombie. * <p> * @throws IOException */ @Override protected void processRemoveAll() throws IOException { if ( !this.getRemoteCacheAttributes().getGetOnly() ) { try { getRemoteCacheService().removeAll( cacheName, getListenerId() ); } catch ( Exception ex ) { handleException( ex, "Failed to remove all from " + cacheName, ICacheEventLogger.REMOVEALL_EVENT ); } } }
if ( this.getRemoteCacheAttributes().getRemoteType() != RemoteType.CLUSTER )
if ( this.getRemoteCacheAttributes().getRemoteType() != RemoteType.CLUSTER )