Skip navigation links
com.tangosol.net
Class WrapperServerSocketChannel
java.lang.Object
java.nio.channels.spi.AbstractInterruptibleChannel
java.nio.channels.SelectableChannel
java.nio.channels.spi.AbstractSelectableChannel
java.nio.channels.ServerSocketChannel
com.tangosol.net.WrapperServerSocketChannel
- All Implemented Interfaces:
- WrapperSelector.WrapperSelectableChannel, Closeable, Channel, InterruptibleChannel
-
public class WrapperServerSocketChannel
- extends ServerSocketChannel
- implements WrapperSelector.WrapperSelectableChannel
Wrapper ServerSocketChannel implementation that delegates all operations to a delegate ServerSocketChannel.
- Author:
- mf 2010.05.19
m_delegate
protected ServerSocketChannel m_delegate
- The delegate channel.
m_socket
protected ServerSocket m_socket
- The associated ServerSocket.
WrapperServerSocketChannel
public WrapperServerSocketChannel(ServerSocketChannel channel,
SelectorProvider provider)
throws IOException
-
- Throws:
IOException
wrapSocket
protected ServerSocket wrapSocket(ServerSocket socket)
throws IOException
- Produce a wrapper around the specified socket.
-
- Parameters:
socket
- the socket to wrap
- Returns:
- the wrapper socket
- Throws:
IOException
- if an I/O error occurs
open
public static ServerSocketChannel open()
- Unsupported.
-
- Returns:
- never
- Throws:
UnsupportedOperationException
socket
public ServerSocket socket()
-
- Specified by:
socket
in class ServerSocketChannel
accept
public SocketChannel accept()
throws IOException
-
- Specified by:
accept
in class ServerSocketChannel
-
- Throws:
IOException
implCloseSelectableChannel
protected void implCloseSelectableChannel()
throws IOException
-
- Specified by:
implCloseSelectableChannel
in class AbstractSelectableChannel
-
- Throws:
IOException
implConfigureBlocking
protected void implConfigureBlocking(boolean block)
throws IOException
-
- Specified by:
implConfigureBlocking
in class AbstractSelectableChannel
-
- Throws:
IOException
registerInternal
public WrapperSelector.WrapperSelectionKey registerInternal(WrapperSelector selector,
int ops,
Object att)
throws IOException
- Register with the specified selector.
-
- Specified by:
registerInternal
in interface WrapperSelector.WrapperSelectableChannel
-
- Parameters:
selector
- the selector to register with
ops
- the operations of interest
att
- the attachment
- Returns:
- the wrapper selection key
- Throws:
IOException
- if an I/O error occurs
Skip navigation links
Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.