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, java.io.Closeable, java.nio.channels.Channel, java.nio.channels.InterruptibleChannel
-
public class WrapperServerSocketChannel
- extends java.nio.channels.ServerSocketChannel
- implements WrapperSelector.WrapperSelectableChannel
Wrapper ServerSocketChannel implementation that delegates all operations to a delegate ServerSocketChannel.
- Author:
- mf 2010.05.19
Field Summary |
protected java.nio.channels.ServerSocketChannel |
m_delegate
The delegate channel. |
protected java.net.ServerSocket |
m_socket
The associated ServerSocket. |
Constructor Summary |
WrapperServerSocketChannel(java.nio.channels.ServerSocketChannel channel, java.nio.channels.spi.SelectorProvider provider)
|
Methods inherited from class java.nio.channels.ServerSocketChannel |
validOps |
Methods inherited from class java.nio.channels.spi.AbstractSelectableChannel |
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, register |
Methods inherited from class java.nio.channels.SelectableChannel |
register |
Methods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel |
begin, close, end, isOpen |
Methods inherited from interface java.nio.channels.Channel |
close, isOpen |
m_delegate
protected java.nio.channels.ServerSocketChannel m_delegate
- The delegate channel.
m_socket
protected java.net.ServerSocket m_socket
- The associated ServerSocket.
WrapperServerSocketChannel
public WrapperServerSocketChannel(java.nio.channels.ServerSocketChannel channel,
java.nio.channels.spi.SelectorProvider provider)
throws java.io.IOException
-
- Throws:
java.io.IOException
wrapSocket
protected java.net.ServerSocket wrapSocket(java.net.ServerSocket socket)
throws java.io.IOException
- Produce a wrapper around the specified socket.
-
- Parameters:
socket
- the socket to wrap
- Returns:
- the wrapper socket
- Throws:
java.io.IOException
- if an I/O error occurs
open
public static java.nio.channels.ServerSocketChannel open()
- Unsupported.
-
- Returns:
- never
- Throws:
java.lang.UnsupportedOperationException
socket
public java.net.ServerSocket socket()
-
- Specified by:
socket
in class java.nio.channels.ServerSocketChannel
accept
public java.nio.channels.SocketChannel accept()
throws java.io.IOException
-
- Specified by:
accept
in class java.nio.channels.ServerSocketChannel
-
- Throws:
java.io.IOException
implCloseSelectableChannel
protected void implCloseSelectableChannel()
throws java.io.IOException
-
- Specified by:
implCloseSelectableChannel
in class java.nio.channels.spi.AbstractSelectableChannel
-
- Throws:
java.io.IOException
implConfigureBlocking
protected void implConfigureBlocking(boolean block)
throws java.io.IOException
-
- Specified by:
implConfigureBlocking
in class java.nio.channels.spi.AbstractSelectableChannel
-
- Throws:
java.io.IOException
registerInternal
public WrapperSelector.WrapperSelectionKey registerInternal(WrapperSelector selector,
int ops,
java.lang.Object att)
throws java.io.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:
java.io.IOException
- if an I/O error occurs
Skip navigation links
Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.