Toggle navigation
Home
long to java.time.Duration
No. of Instances - 45
No. of Commits - 3
No. of Projects - {'james-project'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Jdk -> Jdk
Mapping:
Add or Remove Method invocation
millis
to
duration.toMillis()
System
to
computeNextDelivery(delay)
TimeConverter.getMilliSeconds(rawExpireTime)
to
TimeConverter.parseDuration(rawExpireTime)
toMillis
to
ofSeconds
eq(currentTimeNS - defaultExpireNS)
to
eq(currentTimeNS.minus(defaultExpireNS))
expect(mediator.lock(defaultLockID,tx,new StandardTimepoint(currentTimeNS + defaultExpireNS,times)))
to
expect(mediator.lock(defaultLockID,tx,currentTimeNS.plus(defaultExpireNS)))
expect(mediator.lock(defaultLockID,tx,new StandardTimepoint(currentTimeNS + defaultExpireNS,times)))
to
expect(mediator.lock(defaultLockID,tx,currentTimeNS.plus(defaultExpireNS)))
new ConsistentKeyLocker.Builder(store,manager).times(times).mediator(mediator).internalState(lockState).lockExpire(new StandardDuration(defaultExpireNS,TimeUnit.NANOSECONDS)).lockWait(new StandardDuration(defaultWaitNS,TimeUnit.NANOSECONDS))
to
new ConsistentKeyLocker.Builder(store,manager).times(times).mediator(mediator).internalState(lockState).lockExpire(defaultExpireNS).lockWait(defaultWaitNS)
expect(times.sleepPast(new StandardTimepoint(ls.getWriteTimestamp(TimeUnit.NANOSECONDS) + defaultWaitNS,times)))
to
expect(times.sleepPast(ls.getWriteTimestamp().plus(defaultWaitNS)))
new ConsistentKeyLocker.Builder(store,manager).times(times).mediator(mediator).internalState(lockState).lockExpire(new StandardDuration(defaultExpireNS,TimeUnit.NANOSECONDS)).lockWait(new StandardDuration(defaultWaitNS,TimeUnit.NANOSECONDS))
to
new ConsistentKeyLocker.Builder(store,manager).times(times).mediator(mediator).internalState(lockState).lockExpire(defaultExpireNS).lockWait(defaultWaitNS)
unit
to
ttl.toMillis()
unit
to
ttl.toMillis()
unit
to
ttl.toMillis()
unit
to
ttl.toMillis()
unit
to
ttl.toMillis()
unit
to
ttl.toMillis()
context.schedule(() -> { if (isOpen()) { keepAlive(new CompletableFuture<>()).thenRun(this::keepAlive); } } ,keepAliveInterval,TimeUnit.MILLISECONDS)
to
context.schedule(() -> { if (isOpen()) { keepAlive(new CompletableFuture<>()).thenRun(this::keepAlive); } } ,keepAliveInterval.toMillis(),TimeUnit.MILLISECONDS)
unit
to
ttl.toMillis()
unit
to
ttl.toMillis()
unit
to
ttl.toMillis()
unit
to
ttl.toMillis()
unit
to
ttl.toMillis()
unit
to
ttl.toMillis()
metaData.getMaxInactiveInterval(TimeUnit.MILLISECONDS)
to
metaData.getMaxInactiveInterval()
session.getMetaData()
to
metaData
this.timeout
to
this.timeout.toMillis()
this.timeout
to
this.timeout.toMillis()
timeoutMillis
to
timeout.toMillis()
Rename Variable
millis
to
duration
time
to
duration
delayTimeInMs
to
delayTime
delayTimeInMs
to
delayTime
delayTimeInMs
to
delayTime
delayTimeInMs
to
delayTime
delayTimeInMs
to
delayTime
sleepDurationInMs
to
sleepDuration
timeout
to
maxInactiveInterval
distance
to
duration
bestDistance
to
bestDuration
bestDistance
to
bestDuration
timeoutMillis
to
timeout
timeoutMillis
to
timeout
timeoutMillis
to
timeout
Cascading Type Change (Similar)
long
to
Duration
long
to
Duration
long
to
Duration
Other
new StandardTimepoint(currentTimeNS,times)
to
currentTimeNS
Update argument list (Method invocation)
getMaxInactiveInterval
to
getMaxInactiveInterval
Introduce Literal
Long.MAX_VALUE
to
null