Class NamedSocketFactory
java.lang.Object
org.infinispan.remoting.transport.jgroups.NamedSocketFactory
- All Implemented Interfaces:
org.jgroups.util.SocketFactory
A
SocketFactory
which allows setting a callback to configure the sockets using a supplied name.- Since:
- 13.0
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
Constructor Summary
ConstructorDescriptionNamedSocketFactory
(Supplier<SocketFactory> socketFactory, Supplier<ServerSocketFactory> serverSocketFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(DatagramSocket datagramSocket) void
close
(ServerSocket serverSocket) void
createDatagramSocket
(String service_name) createDatagramSocket
(String service_name, int port) createDatagramSocket
(String service_name, int port, InetAddress laddr) createDatagramSocket
(String service_name, SocketAddress bindaddr) createMulticastSocket
(String service_name) createMulticastSocket
(String service_name, int port) createMulticastSocket
(String service_name, SocketAddress bindaddr) createServerSocket
(String s, int port) createServerSocket
(String s, int port, int backlog) createServerSocket
(String s, int port, int backlog, InetAddress bindAddress) createSocket
(String s, String host, int port) createSocket
(String s, String host, int port, InetAddress localHost, int localPort) createSocket
(String s, InetAddress host, int port) createSocket
(String s, InetAddress host, int port, InetAddress localHost, int localPort) getName()
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jgroups.util.SocketFactory
close, close, createServerSocketChannel, createServerSocketChannel, createServerSocketChannel, createServerSocketChannel, createSocketChannel, createSocketChannel
-
Constructor Details
-
NamedSocketFactory
public NamedSocketFactory(Supplier<SocketFactory> socketFactory, Supplier<ServerSocketFactory> serverSocketFactory)
-
-
Method Details
-
getName
-
setName
-
createSocket
- Specified by:
createSocket
in interfaceorg.jgroups.util.SocketFactory
- Throws:
IOException
-
createSocket
- Specified by:
createSocket
in interfaceorg.jgroups.util.SocketFactory
- Throws:
IOException
-
createSocket
- Specified by:
createSocket
in interfaceorg.jgroups.util.SocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(String s, String host, int port, InetAddress localHost, int localPort) throws IOException - Specified by:
createSocket
in interfaceorg.jgroups.util.SocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(String s, InetAddress host, int port, InetAddress localHost, int localPort) throws IOException - Specified by:
createSocket
in interfaceorg.jgroups.util.SocketFactory
- Throws:
IOException
-
createServerSocket
- Specified by:
createServerSocket
in interfaceorg.jgroups.util.SocketFactory
- Throws:
IOException
-
createServerSocket
- Specified by:
createServerSocket
in interfaceorg.jgroups.util.SocketFactory
- Throws:
IOException
-
createServerSocket
- Specified by:
createServerSocket
in interfaceorg.jgroups.util.SocketFactory
- Throws:
IOException
-
createServerSocket
public ServerSocket createServerSocket(String s, int port, int backlog, InetAddress bindAddress) throws IOException - Specified by:
createServerSocket
in interfaceorg.jgroups.util.SocketFactory
- Throws:
IOException
-
createDatagramSocket
- Specified by:
createDatagramSocket
in interfaceorg.jgroups.util.SocketFactory
- Throws:
SocketException
-
createDatagramSocket
public DatagramSocket createDatagramSocket(String service_name, SocketAddress bindaddr) throws SocketException - Specified by:
createDatagramSocket
in interfaceorg.jgroups.util.SocketFactory
- Throws:
SocketException
-
createDatagramSocket
- Specified by:
createDatagramSocket
in interfaceorg.jgroups.util.SocketFactory
- Throws:
SocketException
-
createDatagramSocket
public DatagramSocket createDatagramSocket(String service_name, int port, InetAddress laddr) throws SocketException - Specified by:
createDatagramSocket
in interfaceorg.jgroups.util.SocketFactory
- Throws:
SocketException
-
createMulticastSocket
- Specified by:
createMulticastSocket
in interfaceorg.jgroups.util.SocketFactory
- Throws:
IOException
-
createMulticastSocket
- Specified by:
createMulticastSocket
in interfaceorg.jgroups.util.SocketFactory
- Throws:
IOException
-
createMulticastSocket
public MulticastSocket createMulticastSocket(String service_name, SocketAddress bindaddr) throws IOException - Specified by:
createMulticastSocket
in interfaceorg.jgroups.util.SocketFactory
- Throws:
IOException
-
close
- Specified by:
close
in interfaceorg.jgroups.util.SocketFactory
- Throws:
IOException
-
close
- Specified by:
close
in interfaceorg.jgroups.util.SocketFactory
- Throws:
IOException
-
close
- Specified by:
close
in interfaceorg.jgroups.util.SocketFactory
-