Class RedissonReactiveSubscription
java.lang.Object
org.redisson.spring.data.connection.RedissonReactiveSubscription
- All Implemented Interfaces:
org.springframework.data.redis.connection.ReactiveSubscription
public class RedissonReactiveSubscription
extends Object
implements org.springframework.data.redis.connection.ReactiveSubscription
- Author:
- Nikita Koksharov
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.ReactiveSubscription
org.springframework.data.redis.connection.ReactiveSubscription.ChannelMessage<C,
M>, org.springframework.data.redis.connection.ReactiveSubscription.Message<C, M>, org.springframework.data.redis.connection.ReactiveSubscription.PatternMessage<P, C, M> -
Constructor Summary
ConstructorDescriptionRedissonReactiveSubscription
(ConnectionManager connectionManager, org.springframework.data.redis.connection.SubscriptionListener subscriptionListener) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono
<Void> cancel()
reactor.core.publisher.Mono
<Void> pSubscribe
(ByteBuffer... patterns) reactor.core.publisher.Mono
<Void> reactor.core.publisher.Mono
<Void> pUnsubscribe
(ByteBuffer... patterns) reactor.core.publisher.Flux
<org.springframework.data.redis.connection.ReactiveSubscription.Message<ByteBuffer, ByteBuffer>> receive()
reactor.core.publisher.Mono
<Void> subscribe
(ByteBuffer... channels) protected ChannelName
toChannelName
(ByteBuffer channel) reactor.core.publisher.Mono
<Void> reactor.core.publisher.Mono
<Void> unsubscribe
(ByteBuffer... channels)
-
Constructor Details
-
RedissonReactiveSubscription
public RedissonReactiveSubscription(ConnectionManager connectionManager, org.springframework.data.redis.connection.SubscriptionListener subscriptionListener)
-
-
Method Details
-
subscribe
- Specified by:
subscribe
in interfaceorg.springframework.data.redis.connection.ReactiveSubscription
-
toChannelName
-
pSubscribe
- Specified by:
pSubscribe
in interfaceorg.springframework.data.redis.connection.ReactiveSubscription
-
unsubscribe
- Specified by:
unsubscribe
in interfaceorg.springframework.data.redis.connection.ReactiveSubscription
-
unsubscribe
- Specified by:
unsubscribe
in interfaceorg.springframework.data.redis.connection.ReactiveSubscription
-
pUnsubscribe
- Specified by:
pUnsubscribe
in interfaceorg.springframework.data.redis.connection.ReactiveSubscription
-
pUnsubscribe
- Specified by:
pUnsubscribe
in interfaceorg.springframework.data.redis.connection.ReactiveSubscription
-
getChannels
- Specified by:
getChannels
in interfaceorg.springframework.data.redis.connection.ReactiveSubscription
-
getPatterns
- Specified by:
getPatterns
in interfaceorg.springframework.data.redis.connection.ReactiveSubscription
-
receive
public reactor.core.publisher.Flux<org.springframework.data.redis.connection.ReactiveSubscription.Message<ByteBuffer,ByteBuffer>> receive()- Specified by:
receive
in interfaceorg.springframework.data.redis.connection.ReactiveSubscription
-
cancel
- Specified by:
cancel
in interfaceorg.springframework.data.redis.connection.ReactiveSubscription
-