Class Inet.DatagramChannelCreator

java.lang.Object
org.apache.pekko.io.Inet.DatagramChannelCreator
All Implemented Interfaces:
Inet.SocketOption
Enclosing class:
Inet

public static class Inet.DatagramChannelCreator extends Object implements Inet.SocketOption
DatagramChannel creation behavior.
  • Constructor Details

    • DatagramChannelCreator

      public DatagramChannelCreator()
  • Method Details

    • create

      public DatagramChannel create() throws Exception
      Open and return new DatagramChannel.

      throws is needed because DatagramChannel.open method can throw an exception.

      Throws:
      Exception