Class RedisChannelBuilder
- java.lang.Object
-
- cc.carm.plugin.mineredis.api.channel.RedisChannelBuilder
-
public class RedisChannelBuilder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
channel
protected java.util.function.Predicate<RedisMessage>
filter
-
Constructor Summary
Constructors Constructor Description RedisChannelBuilder(java.lang.String channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RedisChannelBuilder
filter(java.util.function.Predicate<RedisMessage> filter)
RedisChannel
handle(java.util.function.Consumer<RedisMessage> handler)
RedisChannel
handle(java.util.function.Function<RedisMessage,PreparedRedisMessage> handler)
RedisChannelBuilder
setFilter(java.util.function.Predicate<RedisMessage> filter)
-
-
-
Field Detail
-
channel
protected final java.lang.String channel
-
filter
protected java.util.function.Predicate<RedisMessage> filter
-
-
Method Detail
-
filter
public RedisChannelBuilder filter(java.util.function.Predicate<RedisMessage> filter)
-
setFilter
public RedisChannelBuilder setFilter(java.util.function.Predicate<RedisMessage> filter)
-
handle
public RedisChannel handle(java.util.function.Consumer<RedisMessage> handler)
-
handle
public RedisChannel handle(java.util.function.Function<RedisMessage,PreparedRedisMessage> handler)
-
-