Package com.tangosol.net
Class SystemDatagramSocketProvider
- java.lang.Object
-
- com.tangosol.net.SystemDatagramSocketProvider
-
- All Implemented Interfaces:
DatagramSocketProvider
public class SystemDatagramSocketProvider extends Object implements DatagramSocketProvider
SystemDatagramSocketProvider produces JVM default datagram sockets- Since:
- Coherence 12.1.2
- Author:
- bb 2011.11.21
-
-
Field Summary
Fields Modifier and Type Field Description static SystemDatagramSocketProvider
INSTANCE
A default SocketProvider instance.
-
Constructor Summary
Constructors Constructor Description SystemDatagramSocketProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSecure()
Return true iff the provider returns sockets which are secured, for instance by TLS.DatagramSocket
openDatagramSocket()
Return a new DatagramSocket.MulticastSocket
openMulticastSocket()
Return a new MulticastSocket.String
toString()
-
-
-
Field Detail
-
INSTANCE
public static final SystemDatagramSocketProvider INSTANCE
A default SocketProvider instance.
-
-
Method Detail
-
openDatagramSocket
public DatagramSocket openDatagramSocket() throws IOException
Description copied from interface:DatagramSocketProvider
Return a new DatagramSocket.- Specified by:
openDatagramSocket
in interfaceDatagramSocketProvider
- Returns:
- the DatagramSocket
- Throws:
IOException
- if an I/O related error occurs
-
openMulticastSocket
public MulticastSocket openMulticastSocket() throws IOException
Description copied from interface:DatagramSocketProvider
Return a new MulticastSocket.- Specified by:
openMulticastSocket
in interfaceDatagramSocketProvider
- Returns:
- the MulticastSocket
- Throws:
IOException
- if an I/O related error occurs
-
isSecure
public boolean isSecure()
Description copied from interface:DatagramSocketProvider
Return true iff the provider returns sockets which are secured, for instance by TLS.- Specified by:
isSecure
in interfaceDatagramSocketProvider
- Returns:
- true iff the provider returns secured sockets
-
-