Class QueueHandler.QueueHandlerBuilder<K,​V,​C extends QueueHandler<K,​V>,​B extends QueueHandler.QueueHandlerBuilder<K,​V,​C,​B>>

  • Enclosing class:
    QueueHandler<K,​V>

    public abstract static class QueueHandler.QueueHandlerBuilder<K,​V,​C extends QueueHandler<K,​V>,​B extends QueueHandler.QueueHandlerBuilder<K,​V,​C,​B>>
    extends Object
    • Constructor Detail

      • QueueHandlerBuilder

        public QueueHandlerBuilder()
    • Method Detail

      • channel

        public B channel​(com.rabbitmq.client.Channel channel)
        Returns:
        this.
      • queue

        public B queue​(String queue)
        Returns:
        this.
      • indexingBy

        public B indexingBy​(Function<Message<V>,​K> indexingBy)
        Returns:
        this.
      • consumingBy

        public B consumingBy​(Function<byte[],​V> consumingBy)
        Returns:
        this.
      • publishingBy

        public B publishingBy​(Function<V,​byte[]> publishingBy)
        Returns:
        this.
      • consumerTag

        public B consumerTag​(String consumerTag)
        Returns:
        this.
      • self

        protected abstract B self()
      • build

        public abstract C build()