-
- All Implemented Interfaces:
public final class RedisHeimdallSubscriptionOptions extends RedisHeimdallOptions
-
-
Field Summary
Fields Modifier and Type Field Description private ArrayList<String>channelNamesprivate ArrayList<String>channelPatternsprivate Booleanreconnectprivate LongreconnectIntervalprivate IntegermaxReconnectAttemptsprivate BooleanreconnectingNotificationsprivate StringreconnectingStartNotificationAddressprivate StringreconnectingSucceededNotificationAddressprivate StringreconnectingFailedNotificationAddressprivate RedisOptionsredisOptions
-
Constructor Summary
Constructors Constructor Description RedisHeimdallSubscriptionOptions(RedisOptions redisOptions)RedisHeimdallSubscriptionOptions(RedisHeimdallOptions other)RedisHeimdallSubscriptionOptions()
-
Method Summary
Modifier and Type Method Description final ArrayList<String>getChannelNames()Channel names they will get subscribed at client instantiation. final UnitsetChannelNames(ArrayList<String> channelNames)Channel names they will get subscribed at client instantiation. final ArrayList<String>getChannelPatterns()Channel name patterns they will get subscribed at client instantiation. final UnitsetChannelPatterns(ArrayList<String> channelPatterns)Channel name patterns they will get subscribed at client instantiation. final BooleangetReconnect()Basic flag if this client should reconnect or not. final UnitsetReconnect(Boolean reconnect)Basic flag if this client should reconnect or not. final LonggetReconnectInterval()Interval used to try to reconnect to Redis service. final UnitsetReconnectInterval(Long reconnectInterval)Interval used to try to reconnect to Redis service. final IntegergetMaxReconnectAttempts()Max number of attempts to reconnect they should be done before skip. final UnitsetMaxReconnectAttempts(Integer maxReconnectAttempts)Max number of attempts to reconnect they should be done before skip. final BooleangetReconnectingNotifications()If true, the client will send (not publish) a notification over the event bus on reconnecting for its state and appearance. final UnitsetReconnectingNotifications(Boolean reconnectingNotifications)If true, the client will send (not publish) a notification over the event bus on reconnecting for its state and appearance. final StringgetReconnectingStartNotificationAddress()The event body will contain the stacktrace of the underlying exception. final UnitsetReconnectingStartNotificationAddress(String reconnectingStartNotificationAddress)The event body will contain the stacktrace of the underlying exception. final StringgetReconnectingSucceededNotificationAddress()The event body will be null. final UnitsetReconnectingSucceededNotificationAddress(String reconnectingSucceededNotificationAddress)The event body will be null. final StringgetReconnectingFailedNotificationAddress()The event body will contain the stacktrace of the underlying exception. final UnitsetReconnectingFailedNotificationAddress(String reconnectingFailedNotificationAddress)The event body will contain the stacktrace of the underlying exception. final RedisOptionsgetRedisOptions()final UnitsetRedisOptions(RedisOptions redisOptions)final RedisHeimdallSubscriptionOptionsaddChannelNames(List<String> channelNames)final RedisHeimdallSubscriptionOptionsaddChannelNames(String channelNames)final RedisHeimdallSubscriptionOptionsaddChannelPatterns(List<String> channelPatterns)final RedisHeimdallSubscriptionOptionsaddChannelPatterns(String channelPatterns)-
Methods inherited from class ch.sourcemotion.vertx.redis.client.heimdall.subscription.RedisHeimdallSubscriptionOptions
endpointsToString, setMaxReconnectAttempts, setReconnect, setReconnectInterval, setReconnectingFailedNotificationAddress, setReconnectingNotifications, setReconnectingStartNotificationAddress, setReconnectingSucceededNotificationAddress, setRedisOptions -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
RedisHeimdallSubscriptionOptions
RedisHeimdallSubscriptionOptions(RedisOptions redisOptions)
-
RedisHeimdallSubscriptionOptions
RedisHeimdallSubscriptionOptions(RedisHeimdallOptions other)
-
RedisHeimdallSubscriptionOptions
RedisHeimdallSubscriptionOptions()
-
-
Method Detail
-
getChannelNames
final ArrayList<String> getChannelNames()
Channel names they will get subscribed at client instantiation. It's also possible to subscribe later, just use RedisHeimdallSubscription.addChannels
-
setChannelNames
final Unit setChannelNames(ArrayList<String> channelNames)
Channel names they will get subscribed at client instantiation. It's also possible to subscribe later, just use RedisHeimdallSubscription.addChannels
-
getChannelPatterns
final ArrayList<String> getChannelPatterns()
Channel name patterns they will get subscribed at client instantiation.
It's also possible to subscribe later, just use RedisHeimdallSubscription.addChannelPatterns
-
setChannelPatterns
final Unit setChannelPatterns(ArrayList<String> channelPatterns)
Channel name patterns they will get subscribed at client instantiation.
It's also possible to subscribe later, just use RedisHeimdallSubscription.addChannelPatterns
-
getReconnect
final Boolean getReconnect()
Basic flag if this client should reconnect or not. If this flag is false, in fact this client extension will be disabled.
-
setReconnect
final Unit setReconnect(Boolean reconnect)
Basic flag if this client should reconnect or not. If this flag is false, in fact this client extension will be disabled.
-
getReconnectInterval
final Long getReconnectInterval()
Interval used to try to reconnect to Redis service.
-
setReconnectInterval
final Unit setReconnectInterval(Long reconnectInterval)
Interval used to try to reconnect to Redis service.
-
getMaxReconnectAttempts
final Integer getMaxReconnectAttempts()
Max number of attempts to reconnect they should be done before skip.
-
setMaxReconnectAttempts
final Unit setMaxReconnectAttempts(Integer maxReconnectAttempts)
Max number of attempts to reconnect they should be done before skip.
-
getReconnectingNotifications
final Boolean getReconnectingNotifications()
If true, the client will send (not publish) a notification over the event bus on reconnecting for its state and appearance.
-
setReconnectingNotifications
final Unit setReconnectingNotifications(Boolean reconnectingNotifications)
If true, the client will send (not publish) a notification over the event bus on reconnecting for its state and appearance.
-
getReconnectingStartNotificationAddress
final String getReconnectingStartNotificationAddress()
The event body will contain the stacktrace of the underlying exception.
-
setReconnectingStartNotificationAddress
final Unit setReconnectingStartNotificationAddress(String reconnectingStartNotificationAddress)
The event body will contain the stacktrace of the underlying exception.
-
getReconnectingSucceededNotificationAddress
final String getReconnectingSucceededNotificationAddress()
The event body will be null.
-
setReconnectingSucceededNotificationAddress
final Unit setReconnectingSucceededNotificationAddress(String reconnectingSucceededNotificationAddress)
The event body will be null.
-
getReconnectingFailedNotificationAddress
final String getReconnectingFailedNotificationAddress()
The event body will contain the stacktrace of the underlying exception.
-
setReconnectingFailedNotificationAddress
final Unit setReconnectingFailedNotificationAddress(String reconnectingFailedNotificationAddress)
The event body will contain the stacktrace of the underlying exception.
-
getRedisOptions
final RedisOptions getRedisOptions()
-
setRedisOptions
final Unit setRedisOptions(RedisOptions redisOptions)
-
addChannelNames
final RedisHeimdallSubscriptionOptions addChannelNames(List<String> channelNames)
-
addChannelNames
final RedisHeimdallSubscriptionOptions addChannelNames(String channelNames)
-
addChannelPatterns
final RedisHeimdallSubscriptionOptions addChannelPatterns(List<String> channelPatterns)
-
addChannelPatterns
final RedisHeimdallSubscriptionOptions addChannelPatterns(String channelPatterns)
-
-
-
-