@Internal public interface ClockService
Modifier and Type | Method and Description |
---|---|
long |
currentProcessingTime()
Returns the current processing time.
|
static ClockService |
of(InternalTimerService<?> timerService)
Creates a
ClockService from the given InternalTimerService . |
static ClockService |
ofSystem()
Creates a
ClockService which assigns as current processing time the result of calling
System.currentTimeMillis() . |
long currentProcessingTime()
static ClockService of(InternalTimerService<?> timerService)
ClockService
from the given InternalTimerService
.static ClockService ofSystem()
ClockService
which assigns as current processing time the result of calling
System.currentTimeMillis()
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.