switch (nonstopConfiguration.getTimeoutBehavior().getTimeoutBehaviorType()) {
case NOOP:
case LOCAL_READS:
// for noop and localReads, make the executor service rethrow as TimeoutException,
// so that appropriate action according to behavior can be done
throw new ThrowTimeoutException();
default:
// always throw InvalidLockStateAfterRejoinException for exception-on-timeout behavior
throw new InvalidLockStateAfterRejoinException();
}
} else {