public enum MappedUniqueTimeProvider extends Enum<MappedUniqueTimeProvider> implements net.openhft.chronicle.core.time.TimeProvider, net.openhft.chronicle.core.io.ReferenceOwner
TimeProvider that yields monotonically increasing timestamps shared
between JVM processes by using a memory-mapped file.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
long |
currentTimeMicros() |
long |
currentTimeMillis()
Returns the wall clock time in milliseconds.
|
long |
currentTimeNanos() |
MappedUniqueTimeProvider |
provider(net.openhft.chronicle.core.time.TimeProvider provider)
Sets the underlying time source.
|
static MappedUniqueTimeProvider |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MappedUniqueTimeProvider[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MappedUniqueTimeProvider INSTANCE
public static MappedUniqueTimeProvider[] values()
for (MappedUniqueTimeProvider c : MappedUniqueTimeProvider.values()) System.out.println(c);
public static MappedUniqueTimeProvider valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic MappedUniqueTimeProvider provider(net.openhft.chronicle.core.time.TimeProvider provider)
public long currentTimeMillis()
currentTimeMillis in interface net.openhft.chronicle.core.time.TimeProviderpublic long currentTimeMicros()
throws IllegalStateException
currentTimeMicros in interface net.openhft.chronicle.core.time.TimeProviderIllegalStateExceptionpublic long currentTimeNanos()
throws IllegalStateException
currentTimeNanos in interface net.openhft.chronicle.core.time.TimeProviderIllegalStateExceptionCopyright © 2026 Chronicle Software Ltd. All rights reserved.