Interface Transport

All Known Implementing Classes:
DefaultNettyTransport, StatefulNettyTransport

public interface Transport
Provides an abstraction layer for different Connection implementations.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Free any resources associated with this transport.
    Create a connection object.
    void
    Force shutdown of this transport.
  • Method Details

    • create

      Create a connection object. Implementations should not open a TCP socket in this method.
      Parameters:
      cc - connection configuration
      Returns:
      connection
    • close

      void close()
      Free any resources associated with this transport. This method is invoked by the connection factory using this transport.
    • shutdown

      void shutdown()
      Force shutdown of this transport. This method is only needed in cases where the connection factory is configured not to close the transport. See ThreadPoolConfig.setShutdownStrategy(ThreadPoolConfig.ShutdownStrategy).