@Override public LockServerOptions getLockServerOptions() { LockServerOptions options = LockServerOptions.builder() .isStandaloneServer(isStandaloneServer) .maxAllowedLockTimeout(maxAllowedLockTimeout) .maxAllowedClockDrift(maxAllowedClockDrift) .randomBitCount(RANDOM_BIT_COUNT) .build(); if (log.isTraceEnabled()) { log.trace(".getLockServerOptions() returns {}", options); } return options; }
server = SimulatingServerProxy.newProxyInstance(LockService.class, LockServiceImpl.create( LockServerOptions.builder() .maxAllowedClockDrift(SimpleTimeDuration.of(0, TimeUnit.MILLISECONDS)) .build()), 100);
server = SimulatingServerProxy.newProxyInstance(LockService.class, LockServiceImpl.create( LockServerOptions.builder() .maxAllowedClockDrift(SimpleTimeDuration.of(0, TimeUnit.MILLISECONDS)) .build()), 100); LockRequest request = LockRequest.builder(ImmutableSortedMap.of(lock1, LockMode.WRITE))
Object readResolve() { return new Builder() .isStandaloneServer(isStandaloneServer) .maxAllowedLockTimeout(maxAllowedLockTimeout) .maxAllowedClockDrift(maxAllowedClockDrift) .maxAllowedBlockingDuration(maxAllowedBlockingDuration) .maxNormalLockAge(maxNormalLockAge) .randomBitCount(randomBitCount) .lockStateLoggerDir(lockStateLoggerDir) .slowLogTriggerMillis(slowLogTriggerMillis) .build(); } }
server = SimulatingServerProxy.newProxyInstance(LockService.class, LockServiceImpl.create( LockServerOptions.builder() .maxAllowedClockDrift(SimpleTimeDuration.of(0, TimeUnit.MILLISECONDS)) .build()), 10);
Object readResolve() { return new Builder() .isStandaloneServer(isStandaloneServer) .maxAllowedLockTimeout(maxAllowedLockTimeout) .maxAllowedClockDrift(maxAllowedClockDrift) .maxAllowedBlockingDuration(maxAllowedBlockingDuration) .maxNormalLockAge(maxNormalLockAge) .randomBitCount(randomBitCount) .lockStateLoggerDir(lockStateLoggerDir) .slowLogTriggerMillis(slowLogTriggerMillis) .build(); } }