|
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_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. |
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 occurspublic Socket openSocket() throws IOException
openSocket
in interface SocketProvider
IOException
- if an I/O related error occurspublic SocketChannel openSocketChannel() throws IOException
openSocketChannel
in interface SocketProvider
openSocketChannel
in class SelectorProvider
IOException
- if an I/O related error occurspublic ServerSocket openServerSocket() throws IOException
openServerSocket
in interface SocketProvider
IOException
- if an I/O related error occurspublic ServerSocketChannel openServerSocketChannel() throws IOException
openServerSocketChannel
in interface SocketProvider
openServerSocketChannel
in class SelectorProvider
IOException
- if an I/O related error occurspublic DatagramSocket openDatagramSocket() throws IOException
openDatagramSocket
in interface SocketProvider
IOException
- if an I/O related error occurspublic DatagramChannel openDatagramChannel() throws IOException
openDatagramChannel
in interface SocketProvider
openDatagramChannel
in class SelectorProvider
IOException
- if an I/O related error occurspublic MulticastSocket openMulticastSocket() throws IOException
openMulticastSocket
in interface SocketProvider
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 AbstractSelector openSelector() throws IOException
openSelector
in class SelectorProvider
IOException
public Pipe openPipe() throws IOException
openPipe
in class SelectorProvider
UnsupportedOperationException
IOException
public Channel inheritedChannel() throws IOException
inheritedChannel
in class SelectorProvider
UnsupportedOperationException
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.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |