| Constructor and Description |
|---|
ProducerStub(String topicName,
akka.actor.ActorSystem actorSystem,
akka.stream.Materializer materializer) |
| Modifier and Type | Method and Description |
|---|---|
void |
send(Message<T> message)
Send a message wrapped with metadata to the topic.
|
void |
send(T message)
Sends the message via the
Topic where this ProducerStub is connected to. |
Topic<T> |
topic()
Returns the
Topic where this ProducerStub is connected to. |
public ProducerStub(String topicName, akka.actor.ActorSystem actorSystem, akka.stream.Materializer materializer)
public void send(T message)
Topic where this ProducerStub is connected to.
message - public void send(Message<T> message)
message - The message to send.public Topic<T> topic()
Topic where this ProducerStub is connected to.