Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


com.tangosol.net
Interface SocketProvider

All Known Implementing Classes:
SystemSocketProvider, TcpSocketProvider, WrapperSocketProvider

public interface SocketProvider

SocketProvider defines an abstraction for creating various types of sockets.

Since:
Coherence 3.6
Author:
mf, jh 2010.04.21

Method Summary
 SocketProviderFactory getFactory()
          Return the factory associated with this provider.
 java.nio.channels.DatagramChannel openDatagramChannel()
          Return a new DatagramChannel.
 java.net.DatagramSocket openDatagramSocket()
          Return a new DatagramSocket.
 java.net.MulticastSocket openMulticastSocket()
          Return a new MulticastSocket.
 java.net.ServerSocket openServerSocket()
          Return a new ServerSocket.
 java.nio.channels.ServerSocketChannel openServerSocketChannel()
          Return a new ServerSocketChannel.
 java.net.Socket openSocket()
          Return a new Socket.
 java.nio.channels.SocketChannel openSocketChannel()
          Return a new SocketChannel.
 void setFactory(SocketProviderFactory factory)
          Specify the SocketProviderFactory associated with this provider.

 

Method Detail

openSocket

java.net.Socket openSocket()
                           throws java.io.IOException
Return a new Socket.
Returns:
the Socket
Throws:
java.io.IOException - if an I/O related error occurs

openSocketChannel

java.nio.channels.SocketChannel openSocketChannel()
                                                  throws java.io.IOException
Return a new SocketChannel.
Returns:
the connected SocketChannel
Throws:
java.io.IOException - if an I/O related error occurs

openServerSocket

java.net.ServerSocket openServerSocket()
                                       throws java.io.IOException
Return a new ServerSocket.
Returns:
the ServerSocket
Throws:
java.io.IOException - if an I/O related error occurs

openServerSocketChannel

java.nio.channels.ServerSocketChannel openServerSocketChannel()
                                                              throws java.io.IOException
Return a new ServerSocketChannel.
Returns:
the ServerSocketChannel
Throws:
java.io.IOException - if an I/O related error occurs

openDatagramSocket

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

openDatagramChannel

java.nio.channels.DatagramChannel openDatagramChannel()
                                                      throws java.io.IOException
Return a new DatagramChannel.
Returns:
the DatagramChannel
Throws:
java.io.IOException - if an I/O related error occurs

openMulticastSocket

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

setFactory

void setFactory(SocketProviderFactory factory)
Specify the SocketProviderFactory associated with this provider.
Parameters:
factory - the associated factory

getFactory

SocketProviderFactory getFactory()
Return the factory associated with this provider.
Returns:
the associated factory

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


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