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 Modifier and Type Class Description static classRedissonReactiveSubscription.ListenableCounter-
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.ReactiveSubscription
org.springframework.data.redis.connection.ReactiveSubscription.ChannelMessage<C extends Object,M extends Object>, org.springframework.data.redis.connection.ReactiveSubscription.Message<C extends Object,M extends Object>, org.springframework.data.redis.connection.ReactiveSubscription.PatternMessage<P extends Object,C extends Object,M extends Object>
-
-
Constructor Summary
Constructors Constructor Description RedissonReactiveSubscription(ConnectionManager connectionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<Void>cancel()Set<ByteBuffer>getChannels()Set<ByteBuffer>getPatterns()reactor.core.publisher.Mono<Void>pSubscribe(ByteBuffer... patterns)reactor.core.publisher.Mono<Void>pUnsubscribe()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 ChannelNametoChannelName(ByteBuffer channel)reactor.core.publisher.Mono<Void>unsubscribe()reactor.core.publisher.Mono<Void>unsubscribe(ByteBuffer... channels)
-
-
-
Constructor Detail
-
RedissonReactiveSubscription
public RedissonReactiveSubscription(ConnectionManager connectionManager)
-
-
Method Detail
-
subscribe
public reactor.core.publisher.Mono<Void> subscribe(ByteBuffer... channels)
- Specified by:
subscribein interfaceorg.springframework.data.redis.connection.ReactiveSubscription
-
toChannelName
protected ChannelName toChannelName(ByteBuffer channel)
-
pSubscribe
public reactor.core.publisher.Mono<Void> pSubscribe(ByteBuffer... patterns)
- Specified by:
pSubscribein interfaceorg.springframework.data.redis.connection.ReactiveSubscription
-
unsubscribe
public reactor.core.publisher.Mono<Void> unsubscribe()
- Specified by:
unsubscribein interfaceorg.springframework.data.redis.connection.ReactiveSubscription
-
unsubscribe
public reactor.core.publisher.Mono<Void> unsubscribe(ByteBuffer... channels)
- Specified by:
unsubscribein interfaceorg.springframework.data.redis.connection.ReactiveSubscription
-
pUnsubscribe
public reactor.core.publisher.Mono<Void> pUnsubscribe()
- Specified by:
pUnsubscribein interfaceorg.springframework.data.redis.connection.ReactiveSubscription
-
pUnsubscribe
public reactor.core.publisher.Mono<Void> pUnsubscribe(ByteBuffer... patterns)
- Specified by:
pUnsubscribein interfaceorg.springframework.data.redis.connection.ReactiveSubscription
-
getChannels
public Set<ByteBuffer> getChannels()
- Specified by:
getChannelsin interfaceorg.springframework.data.redis.connection.ReactiveSubscription
-
getPatterns
public Set<ByteBuffer> getPatterns()
- Specified by:
getPatternsin interfaceorg.springframework.data.redis.connection.ReactiveSubscription
-
receive
public reactor.core.publisher.Flux<org.springframework.data.redis.connection.ReactiveSubscription.Message<ByteBuffer,ByteBuffer>> receive()
- Specified by:
receivein interfaceorg.springframework.data.redis.connection.ReactiveSubscription
-
cancel
public reactor.core.publisher.Mono<Void> cancel()
- Specified by:
cancelin interfaceorg.springframework.data.redis.connection.ReactiveSubscription
-
-