public class ContinualMsgPubSvc extends SimpleService implements ContinualMessagePublisher
ContinualMessagePublisher.TopicUnavailableExceptionService.FailedToStart| Constructor and Description |
|---|
ContinualMsgPubSvc(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 ContinualMsgPubSvc(ServiceContainer sc, org.json.JSONObject config) throws Builder.BuildFailure
Builder.BuildFailurepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic ContinualMessageSink getTopic(String topic) throws ContinualMessagePublisher.TopicUnavailableException
ContinualMessagePublishergetTopic in interface ContinualMessagePublisherContinualMessagePublisher.TopicUnavailableException - if the topic name is not supported or somehow not availablepublic void flush()
throws MessagePublishException
ContinualMessagePublisherflush in interface ContinualMessagePublisherMessagePublishExceptionCopyright © 2023 continual.io. All rights reserved.