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
- Author:
- Gary Russell
-
Method Summary
Modifier and Type Method Description void
configure(DatagramSocket socket)
Configure the socket ({code setTrafficClass()}, etc).
-
Method Details
-
configure
Configure the socket ({code setTrafficClass()}, etc).- Parameters:
socket
- the socket.- Throws:
SocketException
- a socket exception.
-