Layer1ApiTimeSource
Package: velox.api.layer1.layers
Type: Interface
All Known Implementing Classes: Layer1ApiDepthFreezer, Layer1ApiInjectorRelay, Layer1ApiRelay, Layer1ApiStrategiesEchoMessagesLayer
Description​
Allows taking a shortcut when responding to Layer1ApiAdminProvider.getCurrentTime(). See Layer1ApiRelay.getTimeSource() to understand the mechanism. In short: even if layer implemented Layer1ApiAdminProvider.getCurrentTime() it can still allow a shortcut by implementing this interface.
Nested Classes​
Layer1ApiTimeSource.Layer1TimeSourceShortcutAllowed​
@interface Layer1ApiTimeSource.Layer1TimeSourceShortcutAllowed
Mark Layer1ApiAdminProvider.getCurrentTime() implementation with this to confirm you are supporting the shortcut.
Methods​
getTimeSource​
Layer1ApiProvider getTimeSource()
getTimeSource​
static Layer1ApiProvider getTimeSource(Layer1ApiProvider provider)