public class LoggerPublisher extends SimpleService implements ContinualMessagePublisher
ContinualMessagePublisher.TopicUnavailableExceptionService.FailedToStart| Constructor and Description |
|---|
LoggerPublisher() |
LoggerPublisher(org.json.JSONObject config) |
LoggerPublisher(ServiceContainer sc,
org.json.JSONObject config) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush()
For implementations with batching, flush the pending messages.
|
ContinualMessageSink |
getTopic(String topic)
Get a message sink for a specific topic.
|
isRunning, onStartRequested, onStopRequested, requestFinish, requestFinishAndWait, startpublic LoggerPublisher()
public LoggerPublisher(org.json.JSONObject config)
public LoggerPublisher(ServiceContainer sc, org.json.JSONObject config)
public void flush()
ContinualMessagePublisherflush in interface ContinualMessagePublisherpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic ContinualMessageSink getTopic(String topic) throws ContinualMessagePublisher.TopicUnavailableException
ContinualMessagePublishergetTopic in interface ContinualMessagePublisherContinualMessagePublisher.TopicUnavailableException - if the topic name is not supported or somehow not availableCopyright © 2023 continual.io. All rights reserved.