Package com.tangosol.net
Interface DatagramSocketProvider
- All Known Implementing Classes:
SystemDatagramSocketProvider
,TcpDatagramSocketProvider
public interface DatagramSocketProvider
DatagramSocketProivder defines an interface for creating datagram and multicast
sockets.
- Since:
- Coherence 12.1.2
- Author:
- bb 2011.11.21
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isSecure()
Return true iff the provider returns sockets which are secured, for instance by TLS.Return a new DatagramSocket.Return a new MulticastSocket.
-
Method Details
-
openDatagramSocket
Return a new DatagramSocket.- Returns:
- the DatagramSocket
- Throws:
IOException
- if an I/O related error occurs
-
openMulticastSocket
Return a new MulticastSocket.- Returns:
- the MulticastSocket
- Throws:
IOException
- if an I/O related error occurs
-
isSecure
boolean isSecure()Return true iff the provider returns sockets which are secured, for instance by TLS.- Returns:
- true iff the provider returns secured sockets
-