public void unsetAsynchConsumerCallback ( int requestNumber , boolean stoppable ) //SIB0115d.comms { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "unsetAsynchConsumerCallback" , "requestNumber=" + requestNumber ) ; try { if ( stoppable ) { //SIB0115d.comms getConsumerSession ( ) . deregisterStoppableAsynchConsumerCallback ( ) ; //SIB0115d.comms } else { //SIB0115d.comms getConsumerSession ( ) . deregisterAsynchConsumerCallback ( ) ; } //SIB0115d.comms try { getConversation ( ) . send ( poolManager . allocate ( ) , JFapChannelConstants . SEG_DEREGISTER_ASYNC_CONSUMER_R , requestNumber , getLowestPriority ( ) , true , ThrottlingPolicy . BLOCK_THREAD , null ) ; } catch ( SIException e ) { FFDCFilter . processException ( e , CLASS_NAME + ".unsetAsynchConsumerCallback" , CommsConstants . CATCONSUMER_UNSETASYNCHCALLBACK_01 , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , e . getMessage ( ) , e ) ; SibTr . error ( tc , "COMMUNICATION_ERROR_SICO2013" , e ) ; } } catch ( SIException e ) { //No FFDC code needed //Only FFDC if we haven't received a meTerminated event. if ( ! ( ( ConversationState ) getConversation ( ) . getAttachment ( ) ) . hasMETerminated ( ) ) { FFDCFilter . processException ( e , CLASS_NAME + ".unsetAsynchConsumerCallback" , CommsConstants . CATCONSUMER_UNSETASYNCHCALLBACK_02 , this ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , e . getMessage ( ) , e ) ; StaticCATHelper . sendExceptionToClient ( e , CommsConstants . CATCONSUMER_UNSETASYNCHCALLBACK_02 , getConversation ( ) , requestNumber ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "unsetAsynchConsumerCallback" ) ; }
This method will unset an asynch callback .