public class SubscriptionInfo extends Object
Constructor and Description |
---|
SubscriptionInfo(String pchannelName,
RedisMessageListener plistener)
Creates a SubscriptionInfo.
|
SubscriptionInfo(String pchannelName,
RedisMessageListener plistener,
boolean pisPatternSubscription)
Creates a SubscriptionInfo.
|
SubscriptionInfo(String pchannelName,
RedisMessageListener plistener,
boolean pisPatternSubscription,
DataHandler pdataHandler)
Creates a SubscriptionInfo.
|
SubscriptionInfo(String pchannelName,
RedisMessageListener plistener,
boolean pisPatternSubscription,
DataHandler pdataHandler,
Executor pexecutor)
Creates a SubscriptionInfo.
|
SubscriptionInfo(String pchannelName,
RedisMessageListener plistener,
boolean pisPatternSubscription,
DataHandler pdataHandler,
Object pmetaData)
Creates a SubscriptionInfo.
|
SubscriptionInfo(String pchannelName,
RedisMessageListener plistener,
boolean pisPatternSubscription,
DataHandler pdataHandler,
Object pmetaData,
Executor pexecutor)
Creates a SubscriptionInfo.
|
Modifier and Type | Method and Description |
---|---|
String |
getChannelName()
Gets the channel name.
|
DataHandler |
getDataHandler()
Gets the Data Handler.
|
Executor |
getExecutor()
Gets the executor.
|
RedisMessageListener |
getListener()
Gets the listener.
|
Object |
getMetaData()
Gets the meta data.
|
boolean |
isPatternSubscription()
Checks if this is a pattern subscription.
|
public SubscriptionInfo(String pchannelName, RedisMessageListener plistener, boolean pisPatternSubscription, DataHandler pdataHandler, Object pmetaData, Executor pexecutor)
pchannelName
- channel nameplistener
- listener which is called when messages are receivedpisPatternSubscription
- true to indicate a pattern subscriptionpdataHandler
- Data Handler to de-serialize messages. If null OPTI_JAVA_HANDLER is usedpmetaData
- Meta Data if any for Data Handler or nullpexecutor
- Executor to use for calling the listener with messages. If null the one set in RedisSubscription
is usedpublic SubscriptionInfo(String pchannelName, RedisMessageListener plistener, boolean pisPatternSubscription, DataHandler pdataHandler, Executor pexecutor)
pchannelName
- channel nameplistener
- listener which is called when messages are receivedpisPatternSubscription
- true to indicate a pattern subscriptionpdataHandler
- Data Handler to de-serialize messages. If null OPTI_JAVA_HANDLER is usedpexecutor
- Executor to use for calling the listener with messages. If null the one set in RedisSubscription
is usedpublic SubscriptionInfo(String pchannelName, RedisMessageListener plistener, boolean pisPatternSubscription, DataHandler pdataHandler, Object pmetaData)
pchannelName
- channel nameplistener
- listener which is called when messages are receivedpisPatternSubscription
- true to indicate a pattern subscriptionpdataHandler
- Data Handler to de-serialize messages. If null OPTI_JAVA_HANDLER is usedpmetaData
- Meta Data if any for Data Handler or nullpublic SubscriptionInfo(String pchannelName, RedisMessageListener plistener, boolean pisPatternSubscription, DataHandler pdataHandler)
pchannelName
- channel nameplistener
- listener which is called when messages are receivedpisPatternSubscription
- true to indicate a pattern subscriptionpdataHandler
- Data Handler to de-serialize messages. If null OPTI_JAVA_HANDLER is usedpublic SubscriptionInfo(String pchannelName, RedisMessageListener plistener, boolean pisPatternSubscription)
pchannelName
- channel nameplistener
- listener which is called when messages are receivedpisPatternSubscription
- true to indicate a pattern subscriptionpublic SubscriptionInfo(String pchannelName, RedisMessageListener plistener)
pchannelName
- channel name or regular subscriptionplistener
- listener which is called when messages are receivedpublic String getChannelName()
public RedisMessageListener getListener()
public boolean isPatternSubscription()
public DataHandler getDataHandler()
public Executor getExecutor()
RedisSubscription
is usedpublic Object getMetaData()
Copyright © 2013- Suresh Mahalingam. All Rights Reserved.