Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.net
Class TcpDatagramSocketProvider

java.lang.Object
  extended by com.tangosol.net.TcpDatagramSocketProvider

All Implemented Interfaces:
DatagramSocketProvider

public class TcpDatagramSocketProvider
extends java.lang.Object
implements DatagramSocketProvider

TcpDatagramSocketProvider produces datagram sockets that uses TCP sockets underneath for unicast communication. For multicast, it still uses the MulticastSockets.

Since:
Coherence 12.1.2
Author:
bb 2011.11.21

Nested Class Summary
static class TcpDatagramSocketProvider.DefaultDependencies
          DefaultDependenceis is a basic implementation of the Dependencies interface providing "setter" methods for each property.
static interface TcpDatagramSocketProvider.Dependencies
          Dependencies specifies all dependency requirements of the TcpDatagramSocketProvider.

 

Field Summary
protected  TcpDatagramSocketProvider.Dependencies m_dependencies
          TcpDatagramSocketProvider Dependencies

 

Constructor Summary
TcpDatagramSocketProvider()
          Construct a TcpDatagramSocketProvider.
TcpDatagramSocketProvider(TcpDatagramSocketProvider.Dependencies deps)
          Construct a TcpDatagramSocketProvider

 

Method Summary
protected  TcpDatagramSocket configure(TcpDatagramSocket socket)
          Configure the socket.
 boolean isSecure()
          Return true iff the provider returns sockets which are secured, for instance by TLS.
 java.net.DatagramSocket openDatagramSocket()
          Return a new DatagramSocket.
 java.net.MulticastSocket openMulticastSocket()
          Return a new MulticastSocket.
 java.lang.String toString()
          

 

Field Detail

m_dependencies

protected TcpDatagramSocketProvider.Dependencies m_dependencies
TcpDatagramSocketProvider Dependencies

Constructor Detail

TcpDatagramSocketProvider

public TcpDatagramSocketProvider()
Construct a TcpDatagramSocketProvider.

TcpDatagramSocketProvider

public TcpDatagramSocketProvider(TcpDatagramSocketProvider.Dependencies deps)
Construct a TcpDatagramSocketProvider
Parameters:
deps - the provider dependencies, or null

Method Detail

openDatagramSocket

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

openMulticastSocket

public java.net.MulticastSocket openMulticastSocket()
                                             throws java.io.IOException
Return a new MulticastSocket.
Specified by:
openMulticastSocket in interface DatagramSocketProvider
Returns:
the MulticastSocket
Throws:
java.io.IOException - if an I/O related error occurs

isSecure

public boolean isSecure()
Return true iff the provider returns sockets which are secured, for instance by TLS.
Specified by:
isSecure in interface DatagramSocketProvider
Returns:
true iff the provider returns secured sockets

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 12.1.2.0.3

E26043-02


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