Class ZooKeeperMessage
- java.lang.Object
-
- org.apache.camel.support.MessageSupport
-
- org.apache.camel.support.DefaultMessage
-
- org.apache.camel.component.zookeeper.ZooKeeperMessage
-
- All Implemented Interfaces:
org.apache.camel.CamelContextAware
,org.apache.camel.Message
,org.apache.camel.spi.DataTypeAware
public class ZooKeeperMessage extends org.apache.camel.support.DefaultMessage
ZooKeeperMessage
is aMessage
representing interactions with a ZooKeeper service. It contains a number of optional Header Constants that are used by the Producer and consumer mechanisms to finely control these interactions.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ZOOKEEPER_ACL
static String
ZOOKEEPER_CREATE_MODE
static String
ZOOKEEPER_ERROR_CODE
static String
ZOOKEEPER_EVENT_TYPE
static String
ZOOKEEPER_NODE
static String
ZOOKEEPER_NODE_VERSION
static String
ZOOKEEPER_OPERATION
static String
ZOOKEEPER_STATISTICS
-
Constructor Summary
Constructors Constructor Description ZooKeeperMessage(org.apache.camel.CamelContext camelContext)
ZooKeeperMessage(org.apache.camel.CamelContext camelContext, String node, org.apache.zookeeper.data.Stat statistics, Map<String,Object> headers)
ZooKeeperMessage(org.apache.camel.CamelContext camelContext, String node, org.apache.zookeeper.data.Stat statistics, Map<String,Object> headers, org.apache.zookeeper.WatchedEvent watchedEvent)
ZooKeeperMessage(org.apache.camel.CamelContext camelContext, String node, org.apache.zookeeper.data.Stat statistics, org.apache.zookeeper.WatchedEvent watchedEvent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
getPath(org.apache.camel.Message message)
static org.apache.zookeeper.data.Stat
getStatistics(org.apache.camel.Message message)
org.apache.camel.support.DefaultMessage
newInstance()
-
Methods inherited from class org.apache.camel.support.DefaultMessage
createHeaders, getHeader, getHeader, getHeader, getHeader, getHeader, getHeader, getHeaders, hasHeaders, hasPopulatedHeaders, isTransactedRedelivered, populateInitialHeaders, removeHeader, removeHeaders, removeHeaders, reset, setHeader, setHeaders
-
Methods inherited from class org.apache.camel.support.MessageSupport
copy, copyFrom, copyFromWithNewBody, createBody, createMessageId, getBody, getBody, getBody, getCamelContext, getDataType, getExchange, getMandatoryBody, getMandatoryBody, getMessageId, getMessageTimestamp, hasDataType, hasMessageId, setBody, setBody, setBody, setCamelContext, setDataType, setExchange, setMessageId, toString
-
-
-
-
Field Detail
-
ZOOKEEPER_NODE
public static final String ZOOKEEPER_NODE
- See Also:
- Constant Field Values
-
ZOOKEEPER_NODE_VERSION
public static final String ZOOKEEPER_NODE_VERSION
- See Also:
- Constant Field Values
-
ZOOKEEPER_ERROR_CODE
public static final String ZOOKEEPER_ERROR_CODE
- See Also:
- Constant Field Values
-
ZOOKEEPER_ACL
public static final String ZOOKEEPER_ACL
- See Also:
- Constant Field Values
-
ZOOKEEPER_CREATE_MODE
public static final String ZOOKEEPER_CREATE_MODE
- See Also:
- Constant Field Values
-
ZOOKEEPER_STATISTICS
public static final String ZOOKEEPER_STATISTICS
- See Also:
- Constant Field Values
-
ZOOKEEPER_EVENT_TYPE
public static final String ZOOKEEPER_EVENT_TYPE
- See Also:
- Constant Field Values
-
ZOOKEEPER_OPERATION
public static final String ZOOKEEPER_OPERATION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ZooKeeperMessage
public ZooKeeperMessage(org.apache.camel.CamelContext camelContext)
-
ZooKeeperMessage
public ZooKeeperMessage(org.apache.camel.CamelContext camelContext, String node, org.apache.zookeeper.data.Stat statistics, org.apache.zookeeper.WatchedEvent watchedEvent)
-
ZooKeeperMessage
public ZooKeeperMessage(org.apache.camel.CamelContext camelContext, String node, org.apache.zookeeper.data.Stat statistics, Map<String,Object> headers)
-
-
Method Detail
-
getStatistics
public static org.apache.zookeeper.data.Stat getStatistics(org.apache.camel.Message message)
-
getPath
public static String getPath(org.apache.camel.Message message)
-
newInstance
public org.apache.camel.support.DefaultMessage newInstance()
- Overrides:
newInstance
in classorg.apache.camel.support.DefaultMessage
-
-