Class BaseIoConnector

java.lang.Object
org.apache.mina.common.support.BaseIoService
org.apache.mina.common.support.BaseIoConnector
All Implemented Interfaces:
IoConnector, IoService
Direct Known Subclasses:
DatagramConnectorDelegate, SocketConnector, VmPipeConnector

public abstract class BaseIoConnector extends BaseIoService implements IoConnector
A base implementation of IoConnector.
  • Constructor Details

    • BaseIoConnector

      protected BaseIoConnector()
  • Method Details

    • connect

      public ConnectFuture connect(SocketAddress address, IoHandler handler)
      Description copied from interface: IoConnector
      Connects to the specified address. If communication starts successfully, events are fired to the specified handler.
      Specified by:
      connect in interface IoConnector
      Returns:
      ConnectFuture that will tell the result of the connection attempt
    • connect

      public ConnectFuture connect(SocketAddress address, SocketAddress localAddress, IoHandler handler)
      Description copied from interface: IoConnector
      Connects to the specified address. If communication starts successfully, events are fired to the specified handler.
      Specified by:
      connect in interface IoConnector
      Parameters:
      localAddress - the local address the channel is bound to
      Returns:
      ConnectFuture that will tell the result of the connection attempt