Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


com.tangosol.net
Class TcpSocketProvider

java.lang.Object
  extended by java.nio.channels.spi.SelectorProvider
      extended by com.tangosol.net.WrapperSocketProvider
          extended by com.tangosol.net.TcpSocketProvider

All Implemented Interfaces:
SocketProvider, XmlConfigurable

public class TcpSocketProvider
extends WrapperSocketProvider

TcpSocketProvider is a SocketProvider which prefers to produce TCP based socket implementations. This includes a TCP based implementation of DatagramSocket.

Since:
Coherence 3.6
Author:
mf 2010.04.21

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

m_fBlocking

protected boolean m_fBlocking
Specifies is the provider is to produce blocking datagram sockets.

m_nAdvanceFrequency

protected int m_nAdvanceFrequency
The TcpDatagramSocket advance frequency.

XML_NAME

public static final java.lang.String XML_NAME
The name of the XmlElement in which the provider configuration is specified.
See Also:
Constant Field Values

Constructor Detail

TcpSocketProvider

public TcpSocketProvider()

Method Detail

openDatagramSocket

public java.net.DatagramSocket openDatagramSocket()
                                           throws java.io.IOException
Return a new DatagramSocket.
Specified by:
openDatagramSocket in interface SocketProvider
Overrides:
openDatagramSocket in class WrapperSocketProvider
Returns:
the DatagramSocket
Throws:
java.io.IOException - if an I/O related error occurs

setConfig

public void setConfig(XmlElement xml)
Specify the configuration for the object.
Specified by:
setConfig in interface XmlConfigurable
Overrides:
setConfig in class WrapperSocketProvider
Parameters:
xml - the XML configuration for the object

toString

public java.lang.String toString()

configure

protected TcpDatagramSocket configure(TcpDatagramSocket socket)
Configure the socket.
Parameters:
socket - the socket
Returns:
the configured socket

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.