*
* @param messageId The request ID to abandon
*/
public InternalAbandonableRequest abandonOutstandingRequest( int messageId )
{
InternalAbandonableRequest request = null;
synchronized ( outstandingLock )
{
request = outstandingRequests.remove( messageId );
}
if ( request == null )
{
LOG.warn( "AbandonableRequest with messageId {} not found in outstandingRequests.", messageId );
return null;
}
if ( request.isAbandoned() )
{
LOG.info( "AbandonableRequest with messageId {} has already been abandoned", messageId );
return request;
}
request.abandon();
if ( IS_DEBUG )
{
LOG.debug( "AbandonRequest on AbandonableRequest wth messageId {} was successful.", messageId );
}