_executorService.execute( _ioStreamReceiverDaemon ); if ( !_isDaemonAlive ) { RetryTimeout theRetryTimeout = new RetryTimeoutImpl( DaemonLoopSleepTime.NORM.getMilliseconds(), RetryLoopCount.NORM_NUM_RETRY_LOOPS.getNumber() ); while ( !_isDaemonAlive ) { theRetryTimeout.nextRetry();
_executorService.execute( _ioStreamReceiverDaemon ); if ( !_isDaemonAlive ) { RetryTimeout theRetryTimeout = new RetryTimeoutImpl( DaemonLoopSleepTime.NORM.getMilliseconds(), RetryLoopCount.NORM_NUM_RETRY_LOOPS.getNumber() ); while ( !_isDaemonAlive ) { theRetryTimeout.nextRetry();
RetryTimeout theRetryTimeout = new RetryTimeoutImpl( IoTimeout.MIN.getMilliseconds(), RetryLoopCount.NORM_NUM_RETRY_LOOPS.getNumber() ); while ( !isClosed() && theRetryTimeout.hasNextRetry() && theSubjectDescriptor == null ) { theRetryTimeout.nextRetry();
RetryTimeout theRetryTimeout = new RetryTimeoutImpl( IoTimeout.NORM.getMilliseconds(), RetryLoopCount.NORM_NUM_RETRY_LOOPS.getNumber() ); while ( (isBusy()) && theRetryTimeout.hasNextRetry() && isOpened() ) { if ( ENABLE_EXTENDED_DEBUG_LOGGING ) {
/** * {@inheritDoc} */ @Override protected synchronized void close( CloseConnectionMessage aJob ) { ControlFlowUtility.throwIllegalStateException( isDestroyed() ); if ( ENABLE_EXTENDED_DEBUG_LOGGING ) { LOGGER.info( "CLOSE called on <" + getClass().getName() + "> with job <" + aJob + ">; connection status is " + getConnectionStatus() + "." ); } if ( !isClosed() ) { signOffAllProxies(); _instanceHandler.lock(); RetryTimeout theRetryTimeout = new RetryTimeoutImpl( IoTimeout.NORM.getMilliseconds(), RetryLoopCount.NORM_NUM_RETRY_LOOPS.getNumber() ); while ( (isBusy()) && theRetryTimeout.hasNextRetry() ) { if ( ENABLE_EXTENDED_DEBUG_LOGGING ) LOGGER.info( "Wait loop <" + theRetryTimeout.getRetryCount() + "> while being BUSY for <" + LoopSleepTime.NORM.getMilliseconds() + "> ms." ); theRetryTimeout.nextRetry(); } super.close( aJob ); if ( isBusy() ) { LOGGER.warn( "Still being BUSY even after reaching the timeout of <" + IoTimeout.NORM.getMilliseconds() + "> ms, closing connection nonetheless." ); } try { super.close(); } catch ( CloseException e ) { LOGGER.warn( "Unable to close malfunctioning connection.", e ); } onClosed(); } }