Interface Transport


public interface Transport
The transport used by a Vertx instance.

Author:
Julien Viet
  • Field Details

  • Method Details

    • supportsDomainSockets

      default boolean supportsDomainSockets()
    • supportFileRegion

      default boolean supportFileRegion()
    • isAvailable

      default boolean isAvailable()
      Returns:
      true when the transport is available.
    • unavailabilityCause

      default Throwable unavailabilityCause()
      Returns:
      the error that cause the unavailability when isAvailable() returns null.
    • convert

      default SocketAddress convert(SocketAddress address)
    • convert

      default SocketAddress convert(SocketAddress address)
    • ioHandlerFactory

      IoHandlerFactory ioHandlerFactory()
    • eventLoopGroup

      default EventLoopGroup eventLoopGroup(int type, int nThreads, ThreadFactory threadFactory, int ioRatio)
      Parameters:
      type - one of ACCEPTOR_EVENT_LOOP_GROUP or IO_EVENT_LOOP_GROUP.
      nThreads - the number of threads that will be used by this instance.
      threadFactory - the ThreadFactory to use.
      ioRatio - the IO ratio
      Returns:
      a new event loop group
    • datagramChannel

      DatagramChannel datagramChannel(InternetProtocolFamily family)
      Returns:
      a new datagram channel
    • datagramChannelFactory

      ChannelFactory<? extends DatagramChannel> datagramChannelFactory()
      Returns:
      the datagram channel
    • channelFactory

      ChannelFactory<? extends Channel> channelFactory(boolean domainSocket)
      Parameters:
      domainSocket - whether to create a unix domain socket channel or a TCP socket channel
      Returns:
      the suitable factory for TCP channels
    • serverChannelFactory

      ChannelFactory<? extends ServerChannel> serverChannelFactory(boolean domainSocket)
      Parameters:
      domainSocket - whether to create a unix domain server socket channel or a TCP server socket channel
      Returns:
      the suitable factory for TCP server channels
    • configure

      default void configure(DatagramChannel channel, DatagramSocketOptions options)
    • configure

      default void configure(TcpConfig config, boolean domainSocket, Bootstrap bootstrap)
    • configure

      default void configure(TcpConfig config, boolean domainSocket, ServerBootstrap bootstrap)