A C E F G I N P R S T 

A

advance() - Method in class com.pervasivecode.utils.time.testing.FakeTimeSource
Advance the fake value representing the "current" time by an unspecified, fixed amount.
advance(Duration) - Method in class com.pervasivecode.utils.time.testing.FakeTimeSource
Advance the fake value representing the "current" time by a fixed amount specified by the caller.

C

com.pervasivecode.utils.time.api - package com.pervasivecode.utils.time.api
 
com.pervasivecode.utils.time.impl - package com.pervasivecode.utils.time.impl
 
com.pervasivecode.utils.time.testing - package com.pervasivecode.utils.time.testing
 
CurrentNanosSource - Interface in com.pervasivecode.utils.time.api
An object that provides the current time since the Unix epoch, with nanosecond precision.
currentTimeNanoPrecision() - Method in interface com.pervasivecode.utils.time.api.CurrentNanosSource
Obtain the current time since the Unix epoch, with nanosecond precision.
currentTimeNanoPrecision() - Method in class com.pervasivecode.utils.time.testing.FakeNanoSource
Return the stored fake "current" time value, and increment the stored value by 1.

E

elapsedSoFar() - Method in class com.pervasivecode.utils.time.testing.FakeTimeSource
Return the amount of time between the internal initial fake time value when this instance was created, and the internal current fake time value stored by this instance.

F

FakeNanoSource - Class in com.pervasivecode.utils.time.testing
This is a fake implementation of CurrentNanosSource, intended for use by test code.
FakeNanoSource() - Constructor for class com.pervasivecode.utils.time.testing.FakeNanoSource
 
FakePeriodicRunner - Class in com.pervasivecode.utils.time.testing
This is a fake implementation of PeriodicRunner, intended for use by test code.
FakePeriodicRunner() - Constructor for class com.pervasivecode.utils.time.testing.FakePeriodicRunner
 
FakeTimeSource - Class in com.pervasivecode.utils.time.testing
This is a fake implementation of TimeSource, intended for use by test code.
FakeTimeSource() - Constructor for class com.pervasivecode.utils.time.testing.FakeTimeSource
Create a FakeTimeSource instance that automatically advances the time value each time now() is called.
FakeTimeSource(boolean) - Constructor for class com.pervasivecode.utils.time.testing.FakeTimeSource
Create a FakeTimeSource instance.

G

getRunnerForInterval(Duration) - Method in class com.pervasivecode.utils.time.impl.SimplePeriodicRunnerFactory
Get an instance of a SimplePeriodicRunner that will allow a Runnable to be executed at the rate specified via the executionInterval.

I

incrementTimeNanos(long) - Method in class com.pervasivecode.utils.time.testing.FakeNanoSource
Increment the internal counter by this many fake nanoseconds.

N

now() - Method in interface com.pervasivecode.utils.time.api.TimeSource
Get the current wall-clock time.
now() - Method in class com.pervasivecode.utils.time.testing.FakeTimeSource
Return the fake value representing the "current" time.

P

PeriodicRunner - Interface in com.pervasivecode.utils.time.api
An object that can run a single Runnable task repeatedly at a steady rate.

R

runOnce() - Method in class com.pervasivecode.utils.time.testing.FakePeriodicRunner
Simulate the periodic timer firing and running the Runnable task.

S

setPeriodicTask(Runnable) - Method in interface com.pervasivecode.utils.time.api.PeriodicRunner
Specify the task that this PeriodicRunner should run periodically.
setPeriodicTask(Runnable) - Method in class com.pervasivecode.utils.time.impl.SimplePeriodicRunner
 
setPeriodicTask(Runnable) - Method in class com.pervasivecode.utils.time.testing.FakePeriodicRunner
 
shutdownGracefully(long, TimeUnit) - Method in class com.pervasivecode.utils.time.impl.SimplePeriodicRunnerFactory
Wait up to a specified amount of time for a currently-running Runnable task to finish, if any, and then shut down.
shutdownNow() - Method in class com.pervasivecode.utils.time.impl.SimplePeriodicRunnerFactory
Interrupt a running task (if any) and do not run any scheduled tasks from now on.
SimplePeriodicRunner - Class in com.pervasivecode.utils.time.impl
A periodic runner of a single Runnable task.
SimplePeriodicRunnerFactory - Class in com.pervasivecode.utils.time.impl
Instances of this class will run a single Runnable task repeatedly at a rate specified in terms of an interval.
SimplePeriodicRunnerFactory() - Constructor for class com.pervasivecode.utils.time.impl.SimplePeriodicRunnerFactory
Create an instance that will produce SimplePeriodicRunner instances that all share the same scheduling thread.
start() - Method in interface com.pervasivecode.utils.time.api.PeriodicRunner
Start calling the specified Runnable task periodically.
start() - Method in class com.pervasivecode.utils.time.impl.SimplePeriodicRunner
 
start() - Method in class com.pervasivecode.utils.time.testing.FakePeriodicRunner
Set an internal flag saying that this runner is in the started state.
started - Variable in class com.pervasivecode.utils.time.testing.FakePeriodicRunner
 
stop() - Method in interface com.pervasivecode.utils.time.api.PeriodicRunner
Stop calling the specified Runnable task periodically.
stop() - Method in class com.pervasivecode.utils.time.impl.SimplePeriodicRunner
Stop the Runnable task from executing in the future.
stop() - Method in class com.pervasivecode.utils.time.testing.FakePeriodicRunner
Set an internal flag saying that this runner is not in the started state.

T

TimeSource - Interface in com.pervasivecode.utils.time.api
An object that supplies values meant to represent the current wall-clock time.
A C E F G I N P R S T