| Package | Description |
|---|---|
| me.lucko.helper.messaging | |
| me.lucko.helper.messaging.conversation | |
| me.lucko.helper.messaging.util |
| Modifier and Type | Method and Description |
|---|---|
Channel<T> |
ChannelAgent.getChannel()
Gets the channel this agent is acting for.
|
default <T> Channel<T> |
Messenger.getChannel(String name,
Class<T> clazz)
Gets a channel by name.
|
<T> Channel<T> |
Messenger.getChannel(String name,
TypeToken<T> type)
Gets a channel by name.
|
<T> Channel<T> |
AbstractMessenger.getChannel(String name,
TypeToken<T> type) |
| Modifier and Type | Method and Description |
|---|---|
Channel<T> |
SimpleConversationChannel.getOutgoingChannel() |
Channel<T> |
ConversationChannel.getOutgoingChannel()
Gets the channel for primary outgoing messages.
|
Channel<R> |
SimpleConversationChannel.getReplyChannel() |
Channel<R> |
ConversationChannel.getReplyChannel()
Gets the channel replies are sent on.
|
| Modifier and Type | Method and Description |
|---|---|
Channel<T> |
ChannelPublisher.getChannel()
Gets the channel
|
| Modifier and Type | Method and Description |
|---|---|
static <T,K,V> MappedChannelReceiver<T,K,V> |
MappedChannelReceiver.create(Channel<T> channel,
Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
Map<K,V> map)
Creates a new mapped channel receiver.
|
static <T,K> MappedChannelReceiver<T,K,T> |
MappedChannelReceiver.create(Channel<T> channel,
Function<? super T,? extends K> keyMapper,
Map<K,T> map)
Creates a new mapped channel receiver.
|
static <T> ChannelPublisher<T> |
ChannelPublisher.create(Channel<T> channel,
long duration,
TimeUnit unit,
Supplier<? extends T> supplier)
Creates a new channel publisher.
|
static <T> ChannelPublisher<T> |
ChannelPublisher.create(Channel<T> channel,
long duration,
TimeUnit unit,
ThreadContext threadContext,
Supplier<? extends T> supplier)
Creates a new channel publisher.
|
static <T,K,V> MappedChannelReceiver<T,K,V> |
MappedChannelReceiver.createExpiring(Channel<T> channel,
Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
long expiryDuration,
TimeUnit unit)
Creates a new expiring mapped channel receiver.
|
static <T,K> MappedChannelReceiver<T,K,T> |
MappedChannelReceiver.createExpiring(Channel<T> channel,
Function<? super T,? extends K> keyMapper,
long expiryDuration,
TimeUnit unit)
Creates a new expiring mapped channel receiver.
|
Copyright © 2020. All rights reserved.