@SPI public interface TransportFactory extends Closeable
Message
inter-exchange between the
current deployment component and other application parts.
Inspired by
Publish-Subscriber Channel pattern.Modifier and Type | Method and Description |
---|---|
Publisher |
createPublisher(io.spine.server.transport.ChannelId id)
Creates a
Publisher channel with the given ID. |
Subscriber |
createSubscriber(io.spine.server.transport.ChannelId id)
Creates a
Subscriber channel with the given ID. |
Publisher createPublisher(io.spine.server.transport.ChannelId id)
Publisher
channel with the given ID.id
- the identifier of the resulting channelPublisher
instanceSubscriber createSubscriber(io.spine.server.transport.ChannelId id)
Subscriber
channel with the given ID.id
- the identifier of the resulting channelSubscriber
instance