public class OnapMsgRouterPublisher extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OnapMsgRouterPublisher.Builder
A builder for the publisher.
|
static interface |
OnapMsgRouterPublisher.Clock
A clock for timing
|
static class |
OnapMsgRouterPublisher.Message
A message includes an event stream name and a payload
|
static class |
OnapMsgRouterPublisher.OnapMrResponse |
| Modifier and Type | Method and Description |
|---|---|
static OnapMsgRouterPublisher.Builder |
builder()
Get a new builder
|
static OnapMsgRouterPublisher.Builder |
localTest()
Get a local test publisher builder to optionally customize further.
|
OnapMsgRouterPublisher.OnapMrResponse |
send(List<OnapMsgRouterPublisher.Message> msgList)
Send a set of messages to the MR cluster in an all or nothing attempt.
|
OnapMsgRouterPublisher.OnapMrResponse |
send(OnapMsgRouterPublisher.Message msg)
Send a single message to the MR cluster.
|
String |
toString() |
public static OnapMsgRouterPublisher.Builder localTest()
public static OnapMsgRouterPublisher.Builder builder()
public OnapMsgRouterPublisher.OnapMrResponse send(OnapMsgRouterPublisher.Message msg)
msg - the message to postpublic OnapMsgRouterPublisher.OnapMrResponse send(List<OnapMsgRouterPublisher.Message> msgList)
msgList - a list of messagesCopyright © 2019 continual.io. All rights reserved.