private void checkParams ( int maxActiveMessages , long messageLockExpiry , int maxBatchSize ) throws SIIncorrectCallException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkParams" , new Object [ ] { Integer . valueOf ( maxActiveMessages ) , Long . valueOf ( messageLockExpiry ) , Integer . valueOf ( maxBatchSize ) } ) ; if ( maxActiveMessages < 0 ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "checkParams" , "SIIncorrectCallException maxActiveMessages < 0" ) ; throw new SIIncorrectCallException ( nls_cwsir . getFormattedMessage ( "REG_ASYNCH_CONSUMER_ERROR_CWSIR0141" , new Object [ ] { Integer . valueOf ( maxActiveMessages ) } , null ) ) ; } if ( messageLockExpiry < 0 ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "checkParams" , "SIIncorrectCallException messageLockExpiry < 0" ) ; throw new SIIncorrectCallException ( nls_cwsir . getFormattedMessage ( "REG_ASYNCH_CONSUMER_ERROR_CWSIR0142" , new Object [ ] { Long . valueOf ( messageLockExpiry ) } , null ) ) ; } if ( maxBatchSize <= 0 ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "checkParams" , "SIIncorrectCallException maxBatchSize <= 0" ) ; throw new SIIncorrectCallException ( nls_cwsir . getFormattedMessage ( "REG_ASYNCH_CONSUMER_ERROR_CWSIR0143" , new Object [ ] { Integer . valueOf ( maxBatchSize ) } , null ) ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "checkParams" ) ; }
Checks that the maxBatchSize is > 0 Checks that messasgeLockExpiry > = 0 Checks that maxActiveMessages > = 0