public final class InMemoryPublisher extends AbstractChannel implements Publisher
Publisher
.
To use only in scope of the same JVM as subscribers.
Modifier and Type | Method and Description |
---|---|
void |
close()
Does nothing as there are no resources to close in the in-memory implementation.
|
boolean |
isStale()
Always returns
false as publishers don't get stale. |
io.spine.core.Ack |
publish(com.google.protobuf.Any messageId,
io.spine.server.integration.ExternalMessage message)
Publishes a given
ExternalMessage to the channel under a given ID. |
id
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
channelIdFor, id, targetType
public io.spine.core.Ack publish(com.google.protobuf.Any messageId, io.spine.server.integration.ExternalMessage message)
Publisher
ExternalMessage
to the channel under a given ID.public boolean isStale()
false
as publishers don't get stale.isStale
in interface MessageChannel
false
always.public void close()
close
in interface java.lang.AutoCloseable