API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.nio.channels. ServerSocketChannel View Source
Author(s)
Mark Reinhold
JSR-51 Expert Group
Since
1.4
Version
1.25, 05/11/17
Serial
Hierarchy
 Object
      AbstractInterruptibleChannel
          SelectableChannel
              AbstractSelectableChannel
                  ServerSocketChannel
Implements
Subclasses
Description
publicabstract abstract class ServerSocketChannel
  A selectable channel for stream-oriented listening sockets.
See also:   
Constructors
protected ServerSocketChannel (SelectorProvider provider)
Initializes a new instance of this class.
Methods
Hide/Show inherited methods
publicabstract SocketChannel accept () throws IOException
  Accepts a connection made to this channel's socket.
protectedfinal void begin () [Inherited From AbstractInterruptibleChannel]
  Marks the beginning of an I/O operation that might block indefinitely.
publicfinal Object blockingLock () [Inherited From AbstractSelectableChannel] [Specified in SelectableChannel]
publicfinal void close () throws IOException [Inherited From AbstractInterruptibleChannel]
  Closes this channel.
publicfinal SelectableChannel configureBlocking (boolean block) throws IOException [Inherited From AbstractSelectableChannel] [Specified in SelectableChannel]
  Adjusts this channel's blocking mode.
protectedfinal void end (boolean completed) throws AsynchronousCloseException [Inherited From AbstractInterruptibleChannel]
  Marks the end of an I/O operation that might block indefinitely.
protectedfinal void implCloseChannel () throws IOException [Inherited From AbstractSelectableChannel] [Specified in AbstractInterruptibleChannel]
  Closes this channel.
protectedabstract void implCloseSelectableChannel () throws IOException [Inherited From AbstractSelectableChannel]
  Closes this selectable channel.
protectedabstract void implConfigureBlocking (boolean block) throws IOException [Inherited From AbstractSelectableChannel]
  Adjusts this channel's blocking mode.
publicfinal boolean isBlocking () [Inherited From AbstractSelectableChannel] [Specified in SelectableChannel]
publicfinal boolean isOpen () [Inherited From AbstractInterruptibleChannel]
publicfinal boolean isRegistered () [Inherited From AbstractSelectableChannel] [Specified in SelectableChannel]
publicfinal SelectionKey keyFor (Selector sel) [Inherited From AbstractSelectableChannel] [Specified in SelectableChannel]
publicstatic ServerSocketChannel open () throws IOException
  Opens a server-socket channel.
publicfinal SelectorProvider provider () [Inherited From AbstractSelectableChannel] [Specified in SelectableChannel]
  Returns the provider that created this channel.
publicfinal SelectionKey register (Selector sel, int ops) throws ClosedChannelException [Inherited From SelectableChannel]
  Registers this channel with the given selector, returning a selection key.
publicfinal SelectionKey register (Selector sel, int ops, Object att) throws ClosedChannelException [Inherited From AbstractSelectableChannel] [Specified in SelectableChannel]
  Registers this channel with the given selector, returning a selection key.
publicabstract ServerSocket socket ()
  Retrieves a server socket associated with this channel.
publicfinal int validOps () [Specified in SelectableChannel]
  Returns an operation set identifying this channel's supported operations.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar