io.quarkus.redis.datasource.pubsub.RedisPubSubMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-redis-client Show documentation
Show all versions of quarkus-redis-client Show documentation
Connect to Redis in either imperative or reactive style
package io.quarkus.redis.datasource.pubsub;
/**
* A structure encapsulating the Redis pub/sub payload and the channel on which the message was sent.
* This structure is used when using {@link ReactivePubSubCommands#subscribeAsMessages(String...)} and
* {@link ReactivePubSubCommands#subscribeAsMessagesToPatterns(String...)}
*
* @param the type of payload
*/
public interface RedisPubSubMessage {
/**
* @return the payload.
*/
V getPayload();
/**
* @return the channel on which the message was sent.
*/
String getChannel();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy