public void setLockDuration ( Duration lockDuration ) { this . lockDuration = lockDuration ; if ( this . lockDuration . compareTo ( ManagementClientConstants . MAX_DURATION ) > 0 ) { this . lockDuration = ManagementClientConstants . MAX_DURATION ; } }
Sets The amount of time that the message is locked by a given receiver so that no other receiver receives the same message .