protected void setTimeoutTime ( int time ) { int timeout = time ; if ( timeout == TCPRequestContext . NO_TIMEOUT ) { this . timeoutTime = TCPRequestContext . NO_TIMEOUT ; this . timeoutInterval = 0 ; } else { if ( timeout == TCPRequestContext . USE_CHANNEL_TIMEOUT ) { timeout = getConfig ( ) . getInactivityTimeout ( ) ; } if ( timeout != ValidateUtils . INACTIVITY_TIMEOUT_NO_TIMEOUT ) { this . timeoutTime = System . currentTimeMillis ( ) + timeout ; this . timeoutInterval = timeout ; } else { this . timeoutTime = TCPRequestContext . NO_TIMEOUT ; this . timeoutInterval = 0 ; } } }
Sets the timeout value returned by getTimeoutTime .