public class SocketOptions extends com.oracle.coherence.common.net.SocketSettings implements XmlConfigurable
| Modifier and Type | Field | Description |
|---|---|---|
protected XmlElement |
m_xml |
The configuration.
|
IP_MULTICAST_IF, IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS, SO_BINDADDR, SO_BROADCAST, SO_KEEPALIVE, SO_LINGER, SO_OOBINLINE, SO_RCVBUF, SO_REUSEADDR, SO_SNDBUF, SO_TIMEOUT, TCP_NODELAY| Constructor | Description |
|---|---|
SocketOptions() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
apply(DatagramSocket socket) |
Configure the specified socket.
|
void |
apply(MulticastSocket socket) |
Configure the specified socket.
|
void |
apply(ServerSocket socket) |
Configure the specified socket.
|
void |
apply(Socket socket) |
Configure the specified socket.
|
static void |
apply(SocketOptions options,
DatagramSocket socket) |
Apply the specified options to a socket.
|
void |
apply(SocketOptions options,
MulticastSocket socket) |
Apply the specified options to a socket.
|
static void |
apply(SocketOptions options,
ServerSocket socket) |
Apply the specified options to a socket.
|
static void |
apply(SocketOptions options,
Socket socket) |
Apply the specified options to a socket.
|
void |
copyOptions(SocketOptions options) |
Copy the options in the specified SocketOptions into this SocketOptions.
|
XmlElement |
getConfig() |
Deprecated.
|
boolean |
isConfigured() |
Return true iff the XmlSocketOptions have been configured with any options.
|
static SocketOptions |
load(XmlElement xml) |
Deprecated.
|
void |
setConfig(XmlElement xml) |
Deprecated.
|
protected XmlElement m_xml
public boolean isConfigured()
public void apply(ServerSocket socket) throws SocketException
socket - the socket to configureSocketException - if an I/O error occurspublic void apply(Socket socket) throws SocketException
socket - the socket to configureSocketException - if an I/O error occurspublic void apply(DatagramSocket socket) throws SocketException
socket - the socket to configureSocketException - if an I/O error occurspublic void apply(MulticastSocket socket) throws SocketException
socket - the socket to configureSocketException - if an I/O error occurs@Deprecated public XmlElement getConfig()
getConfig in interface XmlConfigurable@Deprecated public void setConfig(XmlElement xml)
setConfig in interface XmlConfigurablexml - the XML configuration for the objectpublic void copyOptions(SocketOptions options) throws SocketException
options - the options to copySocketException - if an error occurs@Deprecated public static SocketOptions load(XmlElement xml)
xml - the xml configurationpublic static void apply(SocketOptions options, ServerSocket socket) throws SocketException
options - the options to applysocket - the socket to configureSocketException - if an I/O error occurspublic static void apply(SocketOptions options, Socket socket) throws SocketException
options - the options to applysocket - the socket to configureSocketException - if an I/O error occurspublic static void apply(SocketOptions options, DatagramSocket socket) throws SocketException
options - the options to applysocket - the socket to configureSocketException - if an I/O error occurspublic void apply(SocketOptions options, MulticastSocket socket) throws SocketException
options - the options to applysocket - the socket to configureSocketException - if an I/O error occurs