Class 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 a Message 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 Detail

      • ZOOKEEPER_NODE

        @Metadata(description="The node",
                  javaType="String")
        public static final String ZOOKEEPER_NODE
        See Also:
        Constant Field Values
      • ZOOKEEPER_NODE_VERSION

        @Metadata(description="The node version",
                  javaType="Integer",
                  defaultValue="-1")
        public static final String ZOOKEEPER_NODE_VERSION
        See Also:
        Constant Field Values
      • ZOOKEEPER_ACL

        @Metadata(description="The ACL",
                  javaType="List<ACL>",
                  defaultValue="Ids.OPEN_ACL_UNSAFE")
        public static final String ZOOKEEPER_ACL
        See Also:
        Constant Field Values
      • ZOOKEEPER_CREATE_MODE

        @Metadata(description="The create mode",
                  javaType="org.apache.zookeeper.CreateMode or String")
        public static final String ZOOKEEPER_CREATE_MODE
        See Also:
        Constant Field Values
      • ZOOKEEPER_STATISTICS

        @Metadata(description="The statistics",
                  javaType="org.apache.zookeeper.data.Stat")
        public static final String ZOOKEEPER_STATISTICS
        See Also:
        Constant Field Values
      • ZOOKEEPER_EVENT_TYPE

        @Metadata(description="The event type",
                  javaType="org.apache.zookeeper.Watcher.Event.EventType")
        public static final String ZOOKEEPER_EVENT_TYPE
        See Also:
        Constant Field Values
      • ZOOKEEPER_OPERATION

        @Metadata(label="producer",
                  description="The operation to perform",
                  javaType="String")
        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)
      • ZooKeeperMessage

        public ZooKeeperMessage​(org.apache.camel.CamelContext camelContext,
                                String node,
                                org.apache.zookeeper.data.Stat statistics,
                                Map<String,​Object> headers,
                                org.apache.zookeeper.WatchedEvent watchedEvent)
    • 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 class org.apache.camel.support.DefaultMessage