public long getOperationTimeout() { return _msm.getOperationTimeout(); }
public long getOperationTimeout() { return _msm.getOperationTimeout(); }
public long getOperationTimeout() { return _msm.getOperationTimeout(); }
public long getOperationTimeout() { return _msm.getOperationTimeout(); }
protected LockStatus lock( final String sessionId ) { return lock( sessionId, _manager.getOperationTimeout(), TimeUnit.MILLISECONDS ); }
private void pingSessionBackup( @Nonnull final MemcachedBackupSession session ) throws InterruptedException { final String key = _sessionIdFormat.createBackupKey( session.getId() ); final Future<Boolean> touchResultFuture = _storage.add( key, 5, BYTE_1 ); try { final boolean touchResult = touchResultFuture.get(_manager.getOperationTimeout(), TimeUnit.MILLISECONDS); if ( touchResult ) { _log.warn( "The secondary backup for session " + session.getIdInternal() + " should be touched in memcached, but it seemed to be" + " not existing. Will store in memcached again." ); saveSessionBackup( session, key ); } else _log.debug( "The secondary session backup was ping'ed successfully." ); } catch ( final TimeoutException e ) { _log.warn( "The secondary backup for session " + session.getIdInternal() + " could not be completed within " + _manager.getOperationTimeout() + " millis, was cancelled now." ); } catch ( final ExecutionException e ) { _log.warn( "An exception occurred when trying to ping session " + session.getIdInternal(), e ); } }
public long getOperationTimeout() { return _msm.getOperationTimeout(); }
protected LockStatus lock( final String sessionId ) { return lock( sessionId, _manager.getOperationTimeout(), TimeUnit.MILLISECONDS ); }
private void pingSessionBackup( @Nonnull final MemcachedBackupSession session ) throws InterruptedException { final String key = _sessionIdFormat.createBackupKey( session.getId() ); final Future<Boolean> touchResultFuture = _storage.add( key, 5, BYTE_1 ); try { final boolean touchResult = touchResultFuture.get(_manager.getOperationTimeout(), TimeUnit.MILLISECONDS); if ( touchResult ) { _log.warn( "The secondary backup for session " + session.getIdInternal() + " should be touched in memcached, but it seemed to be" + " not existing. Will store in memcached again." ); saveSessionBackup( session, key ); } else _log.debug( "The secondary session backup was ping'ed successfully." ); } catch ( final TimeoutException e ) { _log.warn( "The secondary backup for session " + session.getIdInternal() + " could not be completed within " + _manager.getOperationTimeout() + " millis, was cancelled now." ); } catch ( final ExecutionException e ) { _log.warn( "An exception occurred when trying to ping session " + session.getIdInternal(), e ); } }