private final boolean remove ( DeliveryDelayableReference deliveryDelayableReference , boolean unlocked ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "remove" , " deliveryDelayableReference=" + deliveryDelayableReference + " unlocked=" + unlocked + " deliveryDelayIndex=" + deliveryDelayIndex . size ( ) ) ; boolean reply = false ; // synchronize on the lockObject synchronized ( lockObject ) { reply = deliveryDelayIndex . remove ( ) ; } if ( reply ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "Removed (" + ( unlocked ? "unlocked" : "gone" ) + ")" + " DDT=" + deliveryDelayableReference . getDeliveryDelayTime ( ) + " objId=" + deliveryDelayableReference . getID ( ) + " DeliveryDelayIndexSize=" + deliveryDelayIndex . size ( ) ) ; } else { // can happen if the element is already deleted if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "Did not remove from index: " + " DDT=" + deliveryDelayableReference . getDeliveryDelayTime ( ) + " objId=" + deliveryDelayableReference . getID ( ) ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "remove" , "deliveryDelayIndex=" + deliveryDelayIndex . size ( ) + " reply=" + reply ) ; return reply ; }
Remove the DeliveryDelayable reference from the DeliveryDelay index . This will remove the current entry pointed - to by the iterator .