|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-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_fBlockingSpecifies is the provider is to produce blocking datagram sockets. |
protected int |
m_nAdvanceFrequencyThe TcpDatagramSocket advance frequency. |
static String |
XML_NAMEThe 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. |
DatagramSocket |
openDatagramSocket()Return a new DatagramSocket. |
void |
setConfig(XmlElement xml)Specify the configuration for the object. |
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 String XML_NAME
| Constructor Detail |
|---|
public TcpSocketProvider()
| Method Detail |
|---|
public DatagramSocket openDatagramSocket()
throws IOException
openDatagramSocket in interface SocketProvideropenDatagramSocket in class WrapperSocketProviderIOException - if an I/O related error occurspublic void setConfig(XmlElement xml)
setConfig in interface XmlConfigurablesetConfig in class WrapperSocketProviderxml - the XML configuration for the objectpublic String toString()
protected TcpDatagramSocket configure(TcpDatagramSocket socket)
socket - the socket
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||