|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
java.nio.channels.spi.SelectorProvider
com.tangosol.net.WrapperSocketProvider
public abstract class WrapperSocketProvider
WrapperSocketProvider is a SocketProvider which produces wrapped sockets which are obtained from a delegate SocketProvider.
| Field Summary | |
|---|---|
protected SocketProviderFactory |
m_factoryThe associated factory. |
protected XmlElement |
m_xmlThe configuration supplied to the provider. |
| Constructor Summary | |
|---|---|
protected |
WrapperSocketProvider()Construct a WrapperSocketProvider with no delegate, allowing the delegate to be specified programatically or through configuration. |
|
WrapperSocketProvider(SocketProvider provider)Construct a WrapperSocketProvider which delegates all SocketProvider calls to the delegate. |
| Method Summary | |
|---|---|
SocketProvider |
ensureDelegate()Return the delegate SocketProvider, creating one if necessary. |
XmlElement |
getConfig()Determine the current configuration of the object. |
SocketProvider |
getDelegate()Return the delegate SocketProvider. |
SocketProviderFactory |
getFactory()Return the factory associated with this provider. |
Channel |
inheritedChannel()Unsupported. |
DatagramChannel |
openDatagramChannel()Return a new DatagramChannel. |
DatagramSocket |
openDatagramSocket()Return a new DatagramSocket. |
MulticastSocket |
openMulticastSocket()Return a new MulticastSocket. |
Pipe |
openPipe()Unsupported. |
AbstractSelector |
openSelector() |
ServerSocket |
openServerSocket()Return a new ServerSocket. |
ServerSocketChannel |
openServerSocketChannel()Return a new ServerSocketChannel. |
Socket |
openSocket()Return a new Socket. |
SocketChannel |
openSocketChannel()Return a new SocketChannel. |
void |
setConfig(XmlElement xml)Specify the configuration for the object. |
void |
setDelegate(SocketProvider provider)Set the delegate SocketProvider |
void |
setFactory(SocketProviderFactory factory)Specify the SocketProviderFactory associated with this provider. |
| Methods inherited from class java.nio.channels.spi.SelectorProvider |
|---|
provider |
| Field Detail |
|---|
protected SocketProviderFactory m_factory
protected XmlElement m_xml
| Constructor Detail |
|---|
public WrapperSocketProvider(SocketProvider provider)
provider - the delegate providerprotected WrapperSocketProvider()
| Method Detail |
|---|
public void setDelegate(SocketProvider provider)
provider - the delegate providerIllegalStateException - if a provider has already been configuredpublic SocketProvider getDelegate()
public SocketProvider ensureDelegate()
throws IOException
IOException - if an I/O error occurs
public Socket openSocket()
throws IOException
openSocket in interface SocketProviderIOException - if an I/O related error occurs
public SocketChannel openSocketChannel()
throws IOException
openSocketChannel in interface SocketProvideropenSocketChannel in class SelectorProviderIOException - if an I/O related error occurs
public ServerSocket openServerSocket()
throws IOException
openServerSocket in interface SocketProviderIOException - if an I/O related error occurs
public ServerSocketChannel openServerSocketChannel()
throws IOException
openServerSocketChannel in interface SocketProvideropenServerSocketChannel in class SelectorProviderIOException - if an I/O related error occurs
public DatagramSocket openDatagramSocket()
throws IOException
openDatagramSocket in interface SocketProviderIOException - if an I/O related error occurs
public DatagramChannel openDatagramChannel()
throws IOException
openDatagramChannel in interface SocketProvideropenDatagramChannel in class SelectorProviderIOException - if an I/O related error occurs
public MulticastSocket openMulticastSocket()
throws IOException
openMulticastSocket in interface SocketProviderIOException - if an I/O related error occurspublic void setFactory(SocketProviderFactory factory)
setFactory in interface SocketProviderfactory - the associated factorypublic SocketProviderFactory getFactory()
getFactory in interface SocketProvider
public AbstractSelector openSelector()
throws IOException
openSelector in class SelectorProviderIOException
public Pipe openPipe()
throws IOException
openPipe in class SelectorProviderUnsupportedOperationExceptionIOException
public Channel inheritedChannel()
throws IOException
inheritedChannel in class SelectorProviderUnsupportedOperationExceptionIOExceptionpublic XmlElement getConfig()
getConfig in interface XmlConfigurablepublic void setConfig(XmlElement xml)
setConfig in interface XmlConfigurablexml - the XML configuration for the object
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||