@ Nonnull public static EChange setConnectionTimeoutMilliSecs ( final long nMilliSecs ) { return s_aRWLock . writeLocked ( ( ) -> { if ( s_nConnectionTimeoutMilliSecs == nMilliSecs ) return EChange . UNCHANGED ; if ( nMilliSecs <= 0 ) LOGGER . warn ( "You are setting an indefinite connection timeout for the mail transport api: " + nMilliSecs ) ; s_nConnectionTimeoutMilliSecs = nMilliSecs ; return EChange . CHANGED ; } ) ; }
Set the connection timeout in milliseconds . Values &le ; 0 are interpreted as indefinite timeout which is not recommended! Changing these settings has no effect on existing mail queues!