|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.nio.channels.spi.SelectorProvider
com.tangosol.net.WrapperSocketProvider
com.tangosol.net.TcpSocketProvider
public class TcpSocketProvider
TcpSocketProvider is a SocketProvider which prefers to produce TCP based socket implementations. This includes a TCP based implementation of DatagramSocket.
Field Summary | |
---|---|
protected boolean |
m_fBlocking Specifies is the provider is to produce blocking datagram sockets. |
protected int |
m_nAdvanceFrequency The TcpDatagramSocket advance frequency. |
static java.lang.String |
XML_NAME The name of the XmlElement in which the provider configuration is specified. |
Fields inherited from class com.tangosol.net.WrapperSocketProvider |
---|
m_factory, m_xml |
Constructor Summary | |
---|---|
TcpSocketProvider() |
Method Summary | |
---|---|
protected TcpDatagramSocket |
configure(TcpDatagramSocket socket) Configure the socket. |
java.net.DatagramSocket |
openDatagramSocket() Return a new DatagramSocket. |
void |
setConfig(XmlElement xml) Specify the configuration for the object. |
java.lang.String |
toString() |
Methods inherited from class com.tangosol.net.WrapperSocketProvider |
---|
ensureDelegate, getConfig, getDelegate, getFactory, inheritedChannel, openDatagramChannel, openMulticastSocket, openPipe, openSelector, openServerSocket, openServerSocketChannel, openSocket, openSocketChannel, setDelegate, setFactory |
Methods inherited from class java.nio.channels.spi.SelectorProvider |
---|
provider |
Field Detail |
---|
protected boolean m_fBlocking
protected int m_nAdvanceFrequency
public static final java.lang.String XML_NAME
Constructor Detail |
---|
public TcpSocketProvider()
Method Detail |
---|
public java.net.DatagramSocket openDatagramSocket() throws java.io.IOException
openDatagramSocket
in interface SocketProvider
openDatagramSocket
in class WrapperSocketProvider
java.io.IOException
- if an I/O related error occurspublic void setConfig(XmlElement xml)
setConfig
in interface XmlConfigurable
setConfig
in class WrapperSocketProvider
xml
- the XML configuration for the objectpublic java.lang.String toString()
protected TcpDatagramSocket configure(TcpDatagramSocket socket)
socket
- the socket
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |