Class ChannelDispatcher

java.lang.Object
org.apache.nifi.io.nio.ChannelDispatcher
All Implemented Interfaces:
Runnable

public final class ChannelDispatcher extends Object implements Runnable
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • serverSocketSelector

      private final Selector serverSocketSelector
    • socketChannelSelector

      private final Selector socketChannelSelector
    • executor

      private final ScheduledExecutorService executor
    • emptyBuffers

      private final BufferPool emptyBuffers
    • factory

      private final StreamConsumerFactory factory
    • channelReaderFrequencyMilliseconds

      private final AtomicLong channelReaderFrequencyMilliseconds
    • timeout

      private final long timeout
    • readSingleDatagram

      private final boolean readSingleDatagram
    • stop

      private volatile boolean stop
    • DEFAULT_CHANNEL_READER_PERIOD_MILLISECONDS

      public static final long DEFAULT_CHANNEL_READER_PERIOD_MILLISECONDS
      See Also:
  • Constructor Details

  • Method Details

    • setChannelReaderFrequency

      public void setChannelReaderFrequency(long period, TimeUnit timeUnit)
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • selectServerSocketKeys

      private void selectServerSocketKeys() throws IOException
      Throws:
      IOException
    • selectSocketChannelKeys

      private void selectSocketChannelKeys() throws IOException
      Throws:
      IOException
    • stop

      public void stop()