Module org.newsclub.net.unix
Package org.newsclub.net.unix
Interface AFSocket.Constructor<A extends AFSocketAddress>
- Type Parameters:
A- The concreteAFSocketAddressthat is supported by this type.
- Enclosing class:
AFSocket<A extends AFSocketAddress>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The reference to the constructor of an
AFSocket subclass.-
Method Summary
Modifier and TypeMethodDescriptionnewInstance(FileDescriptor fdObj, AFSocketFactory<A> factory) Constructs a newAFSocketsubclass instance.
-
Method Details
-
newInstance
@NonNull AFSocket<A> newInstance(FileDescriptor fdObj, AFSocketFactory<A> factory) throws SocketException Constructs a newAFSocketsubclass instance.- Parameters:
fdObj- The file descriptor.factory- The socket factory instance.- Returns:
- The instance.
- Throws:
SocketException- on error.
-