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
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
openDatagramSocket
DatagramSocket openDatagramSocket() throws IOException
Return a new DatagramSocket.- Returns:
- the DatagramSocket
- Throws:
IOException
- if an I/O related error occurs
-
openMulticastSocket
MulticastSocket openMulticastSocket() throws IOException
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
-
-