|
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.net.DatagramSocket
com.tangosol.net.TcpDatagramSocket
com.tangosol.net.NonBlockingTcpDatagramSocket
public class NonBlockingTcpDatagramSocket
TCP based non-blocking datagram socket implementation. In order to provide a non-blocking API this implementation may drop packets if the underlying TCP transfer buffers are full.
Nested Class Summary | |
---|---|
static class |
NonBlockingTcpDatagramSocket.Impl A specialization of TcpDatagramSocket.Impl which provides non-blocking functionality, see NonBlockingTcpDatagramSocket.Impl.send(DatagramPacket) . |
Field Summary | |
---|---|
static boolean |
SPLIT Flag indicating if split sockets should be used for TcpDatagram sockets. |
Fields inherited from class com.tangosol.net.TcpDatagramSocket |
---|
IO_EXCEPTIONS_LOG_LEVEL, m_impl |
Constructor Summary | |
---|---|
|
NonBlockingTcpDatagramSocket() Create a new NonBlockingTcpDatagramSocket that with a wildcard address bound to an ephemeral port. |
|
NonBlockingTcpDatagramSocket(int nPort) Creates a new NonBlockingTcpDatagramSocket using the wildcard address and the specified port number. |
|
NonBlockingTcpDatagramSocket(int nPort, java.net.InetAddress addr) Creates a new NonBlockingTcpDatagramSocket using an address and a port number. |
protected |
NonBlockingTcpDatagramSocket(NonBlockingTcpDatagramSocket.Impl impl) Creates a new NonBlockingTcpDatagramSocket around an NonBlockingTcpDatagramSocket.Impl . |
|
NonBlockingTcpDatagramSocket(java.net.SocketAddress addr) Creates a new NonBlockingTcpDatagramSocket which will be bound to the specified address . |
|
NonBlockingTcpDatagramSocket(SocketProvider provider) Creates a new NonBlockingTcpDatagramSocket using the provider . |
Method Summary |
---|
Methods inherited from class com.tangosol.net.TcpDatagramSocket |
---|
bind, isBound, provider, receive, send, setAdvanceFrequency, setListenBacklog, setPacketMagic, setSocketOptions, toString |
Methods inherited from class java.net.DatagramSocket |
---|
close, connect, connect, disconnect, getBroadcast, getChannel, getInetAddress, getLocalAddress, getLocalPort, getLocalSocketAddress, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoTimeout, getTrafficClass, isClosed, isConnected, setBroadcast, setDatagramSocketImplFactory, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoTimeout, setTrafficClass |
Field Detail |
---|
public static final boolean SPLIT
Constructor Detail |
---|
public NonBlockingTcpDatagramSocket() throws java.net.SocketException
java.net.SocketException
- if any error happens during the bind, or if the port is unavailablepublic NonBlockingTcpDatagramSocket(java.net.SocketAddress addr) throws java.net.SocketException
address
.
addr
- the address
to bindjava.net.SocketException
- if any error happens during the bind, or if the port is unavailablepublic NonBlockingTcpDatagramSocket(int nPort) throws java.net.SocketException
The port number should be between 0 and 65535. Zero means that the system will pick an ephemeral port during the bind operation.
nPort
- the port to bind tojava.net.SocketException
- if any error happens during the bind, or if the port is unavailablepublic NonBlockingTcpDatagramSocket(int nPort, java.net.InetAddress addr) throws java.net.SocketException
address
and a port number.
If null
is specified as the address assigned will be the wildcard address.
The port number should be between 0 and 65535. Zero means that the system will pick an ephemeral port during the bind operation.
nPort
- the port numberaddr
- the IP addressjava.net.SocketException
- if any error happens during the bind, or if the port is unavailablepublic NonBlockingTcpDatagramSocket(SocketProvider provider) throws java.net.SocketException
provider
.
provider
- the provider
to be usedjava.net.SocketException
- if any error happens during the bind, or if the port is unavailableprotected NonBlockingTcpDatagramSocket(NonBlockingTcpDatagramSocket.Impl impl)
NonBlockingTcpDatagramSocket.Impl
.
impl
- a NonBlockingTcpDatagramSocket.Impl
|
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 |