public synchronized SendListener getSendListener ( int requestId ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getSendListener" , "" + requestId ) ; if ( ! containsId ( requestId ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) debugTraceTable ( "id (" + requestId + ") not in table" ) ; throw new SIErrorException ( nls . getFormattedMessage ( "REQIDTABLE_INTERNAL_SICJ0058" , null , "REQIDTABLE_INTERNAL_SICJ0058" ) ) ; // D226223 } testReqIdTableEntry . requestId = requestId ; RequestIdTableEntry entry = table . get ( testReqIdTableEntry ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getSendListener" , entry . sendListener ) ; return entry . sendListener ; }
Returns the semaphore assocaited with the specified request ID . The request ID must be present in the table otherwise a runtime exception is thrown .