Class NonBlockingTcpDatagramSocket.Impl

All Implemented Interfaces:
SocketOptions
Enclosing class:
NonBlockingTcpDatagramSocket

public static class NonBlockingTcpDatagramSocket.Impl extends TcpDatagramSocket.Impl
A specialization of TcpDatagramSocket.Impl which provides non-blocking functionality, see send(DatagramPacket).
  • Constructor Details

    • Impl

      public Impl() throws SocketException
      Creates a new Impl.
      Throws:
      SocketException - if any error happens during the bind, or if the port is unavailable
    • Impl

      public Impl(com.oracle.coherence.common.net.SocketProvider provider) throws SocketException
      Creates a new Impl using a provider.
      Parameters:
      provider - the provider used to create internal sockets
      Throws:
      SocketException - if any error happens during the bind, or if the port is unavailable
  • Method Details

    • onConnectionHeader

      protected boolean onConnectionHeader(com.tangosol.net.TcpDatagramSocket.Impl.ConnectionStatus status, SocketChannel chan) throws IOException
      Process a pending connection header.
      Overrides:
      onConnectionHeader in class TcpDatagramSocket.Impl
      Parameters:
      status - the associated ConnectionStatus
      chan - the associated channel
      Returns:
      true if EOS has been reached
      Throws:
      IOException - if an I/O error occurs
    • makeConnection

      protected com.tangosol.net.TcpDatagramSocket.Impl.Connection makeConnection(SocketChannel chan) throws IOException
      Make a connection from an existing channel.
      Parameters:
      chan - the channel
      Returns:
      the connection
      Throws:
      IOException - if an I/O error occurs
    • makeConnection

      protected com.tangosol.net.TcpDatagramSocket.Impl.Connection makeConnection(SocketAddress addr) throws IOException
      Produce a new Connection for the specified destination address.
      Overrides:
      makeConnection in class TcpDatagramSocket.Impl
      Parameters:
      addr - the destination address
      Returns:
      the corresponding connection
      Throws:
      IOException - if an I/O error occurs
    • send

      protected void send(DatagramPacket packet) throws IOException
      Overrides:
      send in class TcpDatagramSocket.Impl
      Throws:
      IOException