@ Override public void validate ( ) { //validate the parameters String target = getTargetName ( ) ; if ( value ( ) < 1 ) { throw new FaultToleranceDefinitionException ( Tr . formatMessage ( tc , "bulkhead.parameter.invalid.value.CWMFT5016E" , "value " , value ( ) , target ) ) ; } //validate the parameters if ( waitingTaskQueue ( ) < 1 ) { throw new FaultToleranceDefinitionException ( Tr . formatMessage ( tc , "bulkhead.parameter.invalid.value.CWMFT5016E" , "waitingTaskQueue" , waitingTaskQueue ( ) , target ) ) ; } }
Validate Bulkhead configure and make sure the value and waitingTaskQueue must be greater than or equal to 1 .