Package com.framed.streamer.dispatcher
Class InfluxDispatcher
java.lang.Object
com.framed.core.Service
com.framed.io.dispatch.Dispatcher
com.framed.streamer.dispatcher.InfluxDispatcher
-
Field Summary
Fields inherited from class com.framed.core.Service
ADDRESS_REGISTRY_SUFFIX, eventBus, formatter, logger -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.framed.io.dispatch.Dispatcher
onDrop, onHandlerError, shutdownMethods inherited from class com.framed.core.Service
addressRegistry, announceAddress
-
Constructor Details
-
InfluxDispatcher
-
-
Method Details
-
push
Description copied from class:DispatcherPushes a single datapoint to the underlying sink.Invoked on the dispatcher's worker thread. Implementations may throw
IOExceptionto signal a transient failure, which triggers retry with exponential backoff.- Specified by:
pushin classDispatcher- Parameters:
dataPoint- the datapoint to push
-
pushBatch
Description copied from class:DispatcherPushes a batch of datapoints to the underlying sink.- Specified by:
pushBatchin classDispatcher- Parameters:
batch- the datapoints to push
-
stop
public void stop()Description copied from class:ServiceStops the service.By default, this method logs a message indicating that no stop logic is implemented. Subclasses should override this method to provide custom shutdown behavior when necessary.
- Overrides:
stopin classDispatcher
-
