Interface SocketCustomizer

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface SocketCustomizer
Configures a socket.
Since:
5.3.3
  • Method Summary

    Modifier and Type Method Description
    void configure​(java.net.DatagramSocket socket)
    Configure the socket ({code setTrafficClass()}, etc).
  • Method Details

    • configure

      void configure​(java.net.DatagramSocket socket) throws java.net.SocketException
      Configure the socket ({code setTrafficClass()}, etc).
      Parameters:
      socket - the socket.
      Throws:
      java.net.SocketException - a socket exception.