| Package | Description |
|---|---|
| me.lucko.helper.messaging.util |
| 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,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 © 2022. All rights reserved.