Package org.jboss.as.clustering.jgroups
Interface SocketFactory
- All Superinterfaces:
org.jgroups.util.SocketFactory
- All Known Implementing Classes:
ManagedSocketFactory
public interface SocketFactory
extends org.jgroups.util.SocketFactory
Provides default implementations for most
SocketFactory methods.- Author:
- Paul Ferraro
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose(DatagramSocket socket) default voidclose(ServerSocket socket) default voiddefault DatagramSocketcreateDatagramSocket(String name) default DatagramSocketcreateDatagramSocket(String name, int port) default DatagramSocketcreateDatagramSocket(String name, int port, InetAddress address) default MulticastSocketcreateMulticastSocket(String name) default MulticastSocketcreateMulticastSocket(String name, int port) default MulticastSocketcreateMulticastSocket(String name, int port, InetAddress address) default ServerSocketcreateServerSocket(String name, int port) default ServerSocketcreateServerSocket(String name, int port, int backlog) default ServerSocketcreateServerSocket(String name, int port, int backlog, InetAddress address) default ServerSocketcreateServerSocket(String name, SocketAddress bindAddress, int backlog) default ServerSocketChannelcreateServerSocketChannel(String name, int port) default ServerSocketChannelcreateServerSocketChannel(String name, int port, int backlog) default ServerSocketChannelcreateServerSocketChannel(String name, int port, int backlog, InetAddress address) default ServerSocketChannelcreateServerSocketChannel(String name, SocketAddress bindAddress, int backlog) default SocketcreateSocket(String name, String host, int port) default SocketcreateSocket(String name, String host, int port, InetAddress bindAddress, int bindPort) default SocketcreateSocket(String name, InetAddress address, int port) default SocketcreateSocket(String name, InetAddress address, int port, InetAddress bindAddress, int bindPort) default SocketcreateSocket(String name, SocketAddress connectAddress, SocketAddress bindAddress) default SocketChannelcreateSocketChannel(String name, SocketAddress bindAddress) Methods inherited from interface org.jgroups.util.SocketFactory
close, close, createDatagramSocket, createMulticastSocket, createServerSocket, createServerSocketChannel, createSocket, createSocketChannel
-
Field Details
-
DEFAULT_BACKLOG
static final int DEFAULT_BACKLOG- See Also:
-
DEFAULT_BIND_PORT
static final int DEFAULT_BIND_PORT- See Also:
-
-
Method Details
-
createSocket
- Specified by:
createSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createSocket
- Specified by:
createSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createSocket
default Socket createSocket(String name, String host, int port, InetAddress bindAddress, int bindPort) throws IOException - Specified by:
createSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createSocket
default Socket createSocket(String name, InetAddress address, int port, InetAddress bindAddress, int bindPort) throws IOException - Specified by:
createSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createSocket
default Socket createSocket(String name, SocketAddress connectAddress, SocketAddress bindAddress) throws IOException - Throws:
IOException
-
createServerSocket
- Specified by:
createServerSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createServerSocket
- Specified by:
createServerSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createServerSocket
default ServerSocket createServerSocket(String name, int port, int backlog, InetAddress address) throws IOException - Specified by:
createServerSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createServerSocket
default ServerSocket createServerSocket(String name, SocketAddress bindAddress, int backlog) throws IOException - Throws:
IOException
-
createSocketChannel
default SocketChannel createSocketChannel(String name, SocketAddress bindAddress) throws IOException - Specified by:
createSocketChannelin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createServerSocketChannel
- Specified by:
createServerSocketChannelin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createServerSocketChannel
default ServerSocketChannel createServerSocketChannel(String name, int port, int backlog) throws IOException - Specified by:
createServerSocketChannelin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createServerSocketChannel
default ServerSocketChannel createServerSocketChannel(String name, int port, int backlog, InetAddress address) throws IOException - Specified by:
createServerSocketChannelin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createServerSocketChannel
default ServerSocketChannel createServerSocketChannel(String name, SocketAddress bindAddress, int backlog) throws IOException - Throws:
IOException
-
createDatagramSocket
- Specified by:
createDatagramSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
SocketException
-
createDatagramSocket
- Specified by:
createDatagramSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
SocketException
-
createDatagramSocket
default DatagramSocket createDatagramSocket(String name, int port, InetAddress address) 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
default MulticastSocket createMulticastSocket(String name, int port, InetAddress address) throws IOException - 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
-