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.
    • 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