Package velox.api.layer1.layers
Interface Layer1ApiTimeSource
- All Known Implementing Classes:
Layer1ApiDepthFreezer
,Layer1ApiInjectorRelay
,Layer1ApiRelay
,Layer1ApiStrategiesEchoMessagesLayer
public interface Layer1ApiTimeSource
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 Class Summary
Nested Classes Modifier and Type Interface Description static interface
Layer1ApiTimeSource.Layer1TimeSourceShortcutAllowed
MarkLayer1ApiAdminProvider.getCurrentTime()
implementation with this to confirm you are supporting the shortcut -
Method Summary
Modifier and Type Method Description Layer1ApiProvider
getTimeSource()
static Layer1ApiProvider
getTimeSource(Layer1ApiProvider provider)
-
Method Details
-
getTimeSource
Layer1ApiProvider getTimeSource() -
getTimeSource
-