public interface MessageChannel
extends java.lang.AutoCloseable
Modifier and Type | Method and Description |
---|---|
static io.spine.server.transport.ChannelId |
channelIdFor(io.spine.type.TypeUrl messageType)
Converts the given message type into a
ChannelId . |
io.spine.server.transport.ChannelId |
id()
Obtains the channel identifier.
|
boolean |
isStale()
Allows to understand whether this channel is stale and can be closed.
|
default io.spine.type.TypeUrl |
targetType()
Obtains the type of the messages transferred through this channel.
|
io.spine.server.transport.ChannelId id()
boolean isStale()
true
if the channel is stale, false
otherwisedefault io.spine.type.TypeUrl targetType()
static io.spine.server.transport.ChannelId channelIdFor(io.spine.type.TypeUrl messageType)
ChannelId
.messageType
- the type of messages transmitted through the channel