public interface Messenger
Channels.| Modifier and Type | Method and Description |
|---|---|
default Channel<String> |
getChannel(String name)
Gets a messaging channel by name, with the String type.
|
default <T> Channel<T> |
getChannel(String name,
Class<T> clazz)
Gets a messaging channel by name.
|
<T> Channel<T> |
getChannel(String name,
TypeToken<T> type)
Gets a messaging channel by name.
|
@Nonnull <T> Channel<T> getChannel(@Nonnull String name, @Nonnull TypeToken<T> type)
T - the channel message typename - the name of the channel.type - the channel message 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 classCopyright © 2017. All rights reserved.