|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-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. |
java.nio.channels.Channel |
inheritedChannel()Unsupported. |
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.nio.channels.Pipe |
openPipe()Unsupported. |
java.nio.channels.spi.AbstractSelector |
openSelector() |
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 |
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 providerjava.lang.IllegalStateException - if a provider has already been configuredpublic SocketProvider getDelegate()
public SocketProvider ensureDelegate()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
public java.net.Socket openSocket()
throws java.io.IOException
openSocket in interface SocketProviderjava.io.IOException - if an I/O related error occurs
public java.nio.channels.SocketChannel openSocketChannel()
throws java.io.IOException
openSocketChannel in interface SocketProvideropenSocketChannel in class java.nio.channels.spi.SelectorProviderjava.io.IOException - if an I/O related error occurs
public java.net.ServerSocket openServerSocket()
throws java.io.IOException
openServerSocket in interface SocketProviderjava.io.IOException - if an I/O related error occurs
public java.nio.channels.ServerSocketChannel openServerSocketChannel()
throws java.io.IOException
openServerSocketChannel in interface SocketProvideropenServerSocketChannel in class java.nio.channels.spi.SelectorProviderjava.io.IOException - if an I/O related error occurs
public java.net.DatagramSocket openDatagramSocket()
throws java.io.IOException
openDatagramSocket in interface SocketProviderjava.io.IOException - if an I/O related error occurs
public java.nio.channels.DatagramChannel openDatagramChannel()
throws java.io.IOException
openDatagramChannel in interface SocketProvideropenDatagramChannel in class java.nio.channels.spi.SelectorProviderjava.io.IOException - if an I/O related error occurs
public java.net.MulticastSocket openMulticastSocket()
throws java.io.IOException
openMulticastSocket in interface SocketProviderjava.io.IOException - 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 java.nio.channels.spi.AbstractSelector openSelector()
throws java.io.IOException
openSelector in class java.nio.channels.spi.SelectorProviderjava.io.IOException
public java.nio.channels.Pipe openPipe()
throws java.io.IOException
openPipe in class java.nio.channels.spi.SelectorProviderjava.lang.UnsupportedOperationExceptionjava.io.IOException
public java.nio.channels.Channel inheritedChannel()
throws java.io.IOException
inheritedChannel in class java.nio.channels.spi.SelectorProviderjava.lang.UnsupportedOperationExceptionjava.io.IOExceptionpublic 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.7.1.0 E22843-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||