Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


com.tangosol.net
Class WrapperServerSocketChannel

java.lang.Object
  extended by java.nio.channels.spi.AbstractInterruptibleChannel
      extended by java.nio.channels.SelectableChannel
          extended by java.nio.channels.spi.AbstractSelectableChannel
              extended by java.nio.channels.ServerSocketChannel
                  extended by 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

Field Summary
protected  ServerSocketChannel m_delegate
          The delegate channel.
protected  ServerSocket m_socket
          The associated ServerSocket.

 

Constructor Summary
WrapperServerSocketChannel(ServerSocketChannel channel, SelectorProvider provider)
           

 

Method Summary
 SocketChannel accept()
          
protected  void implCloseSelectableChannel()
          
protected  void implConfigureBlocking(boolean block)
          
static ServerSocketChannel open()
          Unsupported.
 WrapperSelector.WrapperSelectionKey registerInternal(WrapperSelector selector, int ops, Object att)
          Register with the specified selector.
 ServerSocket socket()
          
protected  ServerSocket wrapSocket(ServerSocket socket)
          Produce a wrapper around the specified socket.

 

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

 

Field Detail

m_delegate

protected ServerSocketChannel m_delegate
The delegate channel.

m_socket

protected ServerSocket m_socket
The associated ServerSocket.

Constructor Detail

WrapperServerSocketChannel

public WrapperServerSocketChannel(ServerSocketChannel channel,
                                  SelectorProvider provider)
                           throws IOException
Throws:
IOException

Method Detail

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

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.