public interface Messenger
Channels.| Modifier and Type | Method and Description |
|---|---|
default <T> Channel<T> |
getChannel(String name,
Class<T> clazz)
Gets a channel by name.
|
<T> Channel<T> |
getChannel(String name,
com.google.common.reflect.TypeToken<T> type)
Gets a channel by name.
|
default <T extends ConversationMessage,R extends ConversationMessage> |
getConversationChannel(String name,
Class<T> clazz,
Class<R> replyClazz)
Gets a conversation channel by name.
|
default <T extends ConversationMessage,R extends ConversationMessage> |
getConversationChannel(String name,
com.google.common.reflect.TypeToken<T> type,
com.google.common.reflect.TypeToken<R> replyType)
Gets a conversation channel by name.
|
default <Req,Resp> ReqRespChannel<Req,Resp> |
getReqRespChannel(String name,
Class<Req> reqClass,
Class<Resp> respClass)
Gets a req/resp channel by name.
|
default <Req,Resp> ReqRespChannel<Req,Resp> |
getReqRespChannel(String name,
com.google.common.reflect.TypeToken<Req> reqType,
com.google.common.reflect.TypeToken<Resp> respType)
Gets a req/resp channel by name.
|
@Nonnull <T> Channel<T> getChannel(@Nonnull String name, @Nonnull com.google.common.reflect.TypeToken<T> type)
T - the channel message typename - the name of the channel.type - the channel message typetoken@Nonnull default <T extends ConversationMessage,R extends ConversationMessage> ConversationChannel<T,R> getConversationChannel(@Nonnull String name, @Nonnull com.google.common.reflect.TypeToken<T> type, @Nonnull com.google.common.reflect.TypeToken<R> replyType)
T - the channel message typeR - the channel reply typename - the name of the channeltype - the channel outgoing message typetokenreplyType - the channel incoming (reply) message typetoken@Nonnull default <Req,Resp> ReqRespChannel<Req,Resp> getReqRespChannel(@Nonnull String name, @Nonnull com.google.common.reflect.TypeToken<Req> reqType, @Nonnull com.google.common.reflect.TypeToken<Resp> respType)
Req - the request typeResp - the response typename - the name of the channelreqType - the request typetokenrespType - the response typetoken@Nonnull default <T> Channel<T> getChannel(@Nonnull String name, @Nonnull Class<T> clazz)
T - the channel message typename - the name of the channel.clazz - the channel message class@Nonnull default <T extends ConversationMessage,R extends ConversationMessage> ConversationChannel<T,R> getConversationChannel(@Nonnull String name, @Nonnull Class<T> clazz, @Nonnull Class<R> replyClazz)
T - the channel message typeR - the channel reply typename - the name of the channelclazz - the channel outgoing message classreplyClazz - the channel incoming (reply) message class@Nonnull default <Req,Resp> ReqRespChannel<Req,Resp> getReqRespChannel(@Nonnull String name, @Nonnull Class<Req> reqClass, @Nonnull Class<Resp> respClass)
Req - the request typeResp - the response typename - the name of the channelreqClass - the request classrespClass - the response classCopyright © 2022. All rights reserved.