Class ControlTransportPoller

All Implemented Interfaces:
AutoCloseable

public final class ControlTransportPoller extends UdpTransportPoller
Encapsulates the polling of control UdpChannelTransports using whatever means provides the lowest latency.
  • Constructor Details

    • ControlTransportPoller

      public ControlTransportPoller(ErrorHandler errorHandler, DriverConductorProxy conductorProxy)
      Construct a new TransportPoller with an ErrorHandler for logging.
      Parameters:
      errorHandler - which can be used to log errors and continue.
      conductorProxy - to send message back to the conductor.
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class TransportPoller
    • pollTransports

      public int pollTransports()
      Explicit event loop processing as a poll.
      Specified by:
      pollTransports in class UdpTransportPoller
      Returns:
      the number of frames processed.
    • registerForRead

      public void registerForRead(SendChannelEndpoint sendChannelEndpoint)
      Register channel for read.
      Parameters:
      sendChannelEndpoint - to associate with read.
    • cancelRead

      public void cancelRead(SendChannelEndpoint sendChannelEndpoint)
      Cancel a previous read registration.
      Parameters:
      sendChannelEndpoint - to be canceled and removed.
    • checkForReResolutions

      public void checkForReResolutions(long nowNs, DriverConductorProxy conductorProxy)
      Check if any of the registered channels require re-resolution.
      Parameters:
      nowNs - as the current time.
      conductorProxy - for sending re-resolution requests.
    • toString

      public String toString()
      Overrides:
      toString in class Object