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
ConstructorsConstructorDescriptionNamedSocketFactory(Supplier<SocketFactory> socketFactory, Supplier<ServerSocketFactory> serverSocketFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(DatagramSocket datagramSocket) voidclose(ServerSocket serverSocket) voidcreateDatagramSocket(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()voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
createSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createSocket
- Specified by:
createSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createSocket
- Specified by:
createSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(String s, String host, int port, InetAddress localHost, int localPort) throws IOException - Specified by:
createSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(String s, InetAddress host, int port, InetAddress localHost, int localPort) throws IOException - Specified by:
createSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createServerSocket
- Specified by:
createServerSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createServerSocket
- Specified by:
createServerSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createServerSocket
- Specified by:
createServerSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createServerSocket
public ServerSocket createServerSocket(String s, int port, int backlog, InetAddress bindAddress) throws IOException - Specified by:
createServerSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createDatagramSocket
- Specified by:
createDatagramSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
SocketException
-
createDatagramSocket
public DatagramSocket createDatagramSocket(String service_name, SocketAddress bindaddr) throws SocketException - Specified by:
createDatagramSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
SocketException
-
createDatagramSocket
- Specified by:
createDatagramSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
SocketException
-
createDatagramSocket
public DatagramSocket createDatagramSocket(String service_name, int port, InetAddress laddr) throws SocketException - Specified by:
createDatagramSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
SocketException
-
createMulticastSocket
- Specified by:
createMulticastSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createMulticastSocket
- Specified by:
createMulticastSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createMulticastSocket
public MulticastSocket createMulticastSocket(String service_name, SocketAddress bindaddr) throws IOException - Specified by:
createMulticastSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
close
- Specified by:
closein interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
close
- Specified by:
closein interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
close
- Specified by:
closein interfaceorg.jgroups.util.SocketFactory
-