Package 

Class BaseDelegatingServerSocketChannel

  • All Implemented Interfaces:
    java.io.Closeable , java.lang.AutoCloseable , java.nio.channels.Channel , java.nio.channels.InterruptibleChannel , java.nio.channels.NetworkChannel

    
    public class BaseDelegatingServerSocketChannel<T extends ServerSocketChannel>
    extends ServerSocketChannel
                        

    Implements a ServerSocketChannel which delegates (its method calls) to another ServerSocketChannel. In other words, the former wraps the latter.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      BaseDelegatingServerSocketChannel(T delegate) Initializes a new BaseDelegatingServerSocketChannel instance which is to delegate (its method calls) to a specific ServerSocketChannel.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      SocketChannel accept() Forwards to delegate.
      ServerSocketChannel bind(SocketAddress local, int backlog) Forwards to delegate and returns this.
      SocketAddress getLocalAddress() Forwards to delegate.
      <U> U getOption(SocketOption<U> name) Forwards to delegate.
      boolean isBound() Determines whether this BaseDelegatingServerSocketChannel is bound.
      <U> ServerSocketChannel setOption(SocketOption<U> name, U value) Forwards to delegate and returns this.
      ServerSocket socket() Allows wrapping the socket of delegate.
      Set<SocketOption<out Object>> supportedOptions() Forwards to delegate.
      • Methods inherited from class java.nio.channels.ServerSocketChannel

        bind, open, validOps
      • Methods inherited from class java.nio.channels.spi.AbstractSelectableChannel

        blockingLock, configureBlocking, isBlocking, isRegistered, keyFor, provider, register
      • Methods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel

        close, isOpen
      • Methods inherited from class java.nio.channels.NetworkChannel

        bind, setOption
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait