|
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_factory The associated factory. |
protected XmlElement |
m_xml The 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 occurspublic java.net.Socket openSocket() throws java.io.IOException
openSocket
in interface SocketProvider
java.io.IOException
- if an I/O related error occurspublic java.nio.channels.SocketChannel openSocketChannel() throws java.io.IOException
openSocketChannel
in interface SocketProvider
openSocketChannel
in class java.nio.channels.spi.SelectorProvider
java.io.IOException
- if an I/O related error occurspublic java.net.ServerSocket openServerSocket() throws java.io.IOException
openServerSocket
in interface SocketProvider
java.io.IOException
- if an I/O related error occurspublic java.nio.channels.ServerSocketChannel openServerSocketChannel() throws java.io.IOException
openServerSocketChannel
in interface SocketProvider
openServerSocketChannel
in class java.nio.channels.spi.SelectorProvider
java.io.IOException
- if an I/O related error occurspublic java.net.DatagramSocket openDatagramSocket() throws java.io.IOException
openDatagramSocket
in interface SocketProvider
java.io.IOException
- if an I/O related error occurspublic java.nio.channels.DatagramChannel openDatagramChannel() throws java.io.IOException
openDatagramChannel
in interface SocketProvider
openDatagramChannel
in class java.nio.channels.spi.SelectorProvider
java.io.IOException
- if an I/O related error occurspublic java.net.MulticastSocket openMulticastSocket() throws java.io.IOException
openMulticastSocket
in interface SocketProvider
java.io.IOException
- if an I/O related error occurspublic void setFactory(SocketProviderFactory factory)
setFactory
in interface SocketProvider
factory
- 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.SelectorProvider
java.io.IOException
public java.nio.channels.Pipe openPipe() throws java.io.IOException
openPipe
in class java.nio.channels.spi.SelectorProvider
java.lang.UnsupportedOperationException
java.io.IOException
public java.nio.channels.Channel inheritedChannel() throws java.io.IOException
inheritedChannel
in class java.nio.channels.spi.SelectorProvider
java.lang.UnsupportedOperationException
java.io.IOException
public XmlElement getConfig()
getConfig
in interface XmlConfigurable
public void setConfig(XmlElement xml)
setConfig
in interface XmlConfigurable
xml
- 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 |