Package io.hekate.messaging.intercept
Interface ServerInboundContext<T>
-
- Type Parameters:
T
- Message type.
- All Known Subinterfaces:
ServerReceiveContext<T>
public interface ServerInboundContext<T>
Server's inbound message context.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
channelName()
Returns the channel name (seeMessagingChannel.name()
).ClusterAddress
from()
Address of a remote node.Object
getAttribute(String name)
Returns the attribute for the specified name.T
payload()
Returns the inbound message.OutboundType
type()
Type of a send operation.
-
-
-
Method Detail
-
type
OutboundType type()
Type of a send operation.- Returns:
- Type of a send operation.
-
payload
T payload()
Returns the inbound message.- Returns:
- Message.
-
channelName
String channelName()
Returns the channel name (seeMessagingChannel.name()
).- Returns:
- Channel name.
-
from
ClusterAddress from()
Address of a remote node.- Returns:
- Address of a remote node.
-
getAttribute
Object getAttribute(String name)
Returns the attribute for the specified name.- Parameters:
name
- Name.- Returns:
- Value or
null
if there is no such attribute. - See Also:
ServerReceiveContext.setAttribute(String, Object)
-
-