Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-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, 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)
           

 

Method Summary
 java.nio.channels.SocketChannel accept()
          
protected  void implCloseSelectableChannel()
          
protected  void implConfigureBlocking(boolean block)
          
static java.nio.channels.ServerSocketChannel open()
          Unsupported.
 WrapperSelector.WrapperSelectionKey registerInternal(WrapperSelector selector, int ops, java.lang.Object att)
          Register with the specified selector.
 java.net.ServerSocket socket()
          
protected  java.net.ServerSocket wrapSocket(java.net.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 java.nio.channels.ServerSocketChannel m_delegate
The delegate channel.

m_socket

protected java.net.ServerSocket m_socket
The associated ServerSocket.

Constructor Detail

WrapperServerSocketChannel

public WrapperServerSocketChannel(java.nio.channels.ServerSocketChannel channel,
                                  java.nio.channels.spi.SelectorProvider provider)
                           throws java.io.IOException
Throws:
java.io.IOException

Method Detail

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

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


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