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.SocketFactoryProvides default implementations for mostSocketFactorymethods.- Author:
- Paul Ferraro
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_BACKLOGstatic intDEFAULT_BIND_PORT
-
Method Summary
-
-
-
Field Detail
-
DEFAULT_BACKLOG
static final int DEFAULT_BACKLOG
- See Also:
- Constant Field Values
-
DEFAULT_BIND_PORT
static final int DEFAULT_BIND_PORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
createSocket
default Socket createSocket(String name, String host, int port) throws IOException
- Specified by:
createSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createSocket
default Socket createSocket(String name, InetAddress address, int port) throws IOException
- 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
default ServerSocket createServerSocket(String name, int port) throws IOException
- Specified by:
createServerSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createServerSocket
default ServerSocket createServerSocket(String name, int port, int backlog) throws IOException
- 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
default ServerSocketChannel createServerSocketChannel(String name, int port) throws IOException
- 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
default DatagramSocket createDatagramSocket(String name) throws SocketException
- Specified by:
createDatagramSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
SocketException
-
createDatagramSocket
default DatagramSocket createDatagramSocket(String name, int port) throws SocketException
- 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
default MulticastSocket createMulticastSocket(String name) throws IOException
- Specified by:
createMulticastSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createMulticastSocket
default MulticastSocket createMulticastSocket(String name, int port) throws IOException
- Specified by:
createMulticastSocketin interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
createMulticastSocket
default MulticastSocket createMulticastSocket(String name, int port, InetAddress address) throws IOException
- Throws:
IOException
-
close
default void close(Socket socket) throws IOException
- Specified by:
closein interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
close
default void close(ServerSocket socket) throws IOException
- Specified by:
closein interfaceorg.jgroups.util.SocketFactory- Throws:
IOException
-
close
default void close(DatagramSocket socket)
- Specified by:
closein interfaceorg.jgroups.util.SocketFactory
-
-