Class QueueInputStream.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • get

        public QueueInputStream get()
        Constructs a new instance.

        This builder use the aspects BlockingQueue and timeout.

        Returns:
        a new instance.
      • setBlockingQueue

        public QueueInputStream.Builder setBlockingQueue​(java.util.concurrent.BlockingQueue<java.lang.Integer> blockingQueue)
        Sets backing queue for the stream.
        Parameters:
        blockingQueue - backing queue for the stream.
        Returns:
        this
      • setTimeout

        public QueueInputStream.Builder setTimeout​(java.time.Duration timeout)
        Sets the polling timeout.
        Parameters:
        timeout - the polling timeout.
        Returns:
        this.