@ Override public long getMaximumTimeInStore ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getMaximumTimeInStore" ) ; JsMessage localMsg = getJSMessage ( true ) ; long timeToLive = localMsg . getTimeToLive ( ) . longValue ( ) ; long maxTime = NEVER_EXPIRES ; // 180921 if ( timeToLive > 0 ) { maxTime = timeToLive - getAggregateWaitTime ( ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getMaximumTimeInStore" , Long . valueOf ( maxTime ) ) ; return maxTime ; }
Return the maximum time this message should spend in the ItemStream .