protected boolean doesQueueContainConversation ( final Conversation conversation ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "doesQueueContainConversation" , conversation ) ; boolean rc = false ; synchronized ( barrier ) { for ( int i = 0 ; i < queue . size ( ) ; i ++ ) { final AbstractInvocation invocation = queue . get ( i ) ; if ( invocation . getConversation ( ) . equals ( conversation ) ) { rc = true ; break ; } } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "doesQueueContainConversation" , rc ) ; return rc ; }
Return true if a conversation is already in this queue