io.vertx.core.net

## Interface NetSocketStream

- All Superinterfaces:
    ReadStream<NetSocket>, StreamBase

      public interface NetSocketStream
      extends ReadStream<NetSocket>

  A `ReadStream` of `NetSocket`, used for notifying socket connections to a `NetServer`.
  Author:
    Julien Viet

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `NetSocketStream` | `endHandler(Handler<Void> endHandler)` Set an end handler.
    `NetSocketStream` | `exceptionHandler(Handler<Throwable> handler)` Set an exception handler on the read stream.
    `NetSocketStream` | `handler(Handler<NetSocket> handler)` Set a data handler.
    `NetSocketStream` | `pause()` Pause the `ReadSupport`.
    `NetSocketStream` | `resume()` Resume reading.

- - ### Method Detail

    - #### exceptionHandler

          NetSocketStream exceptionHandler(Handler<Throwable> handler)

      Description copied from interface: `ReadStream`
      Set an exception handler on the read stream.
      Specified by:
        `exceptionHandler` in interface `ReadStream<NetSocket>`
      Specified by:
        `exceptionHandler` in interface `StreamBase`
      Parameters:
        `handler` - the exception handler
      Returns:
        a reference to this, so the API can be used fluently

    - #### handler

          NetSocketStream handler(Handler<NetSocket> handler)

      Description copied from interface: `ReadStream`
      Set a data handler. As data is read, the handler will be called with the data.
      Specified by:
        `handler` in interface `ReadStream<NetSocket>`
      Returns:
        a reference to this, so the API can be used fluently

    - #### pause

          NetSocketStream pause()

      Description copied from interface: `ReadStream`
      Pause the `ReadSupport`. While it's paused, no data will be sent to the `dataHandler`
      Specified by:
        `pause` in interface `ReadStream<NetSocket>`
      Returns:
        a reference to this, so the API can be used fluently

    - #### resume

          NetSocketStream resume()

      Description copied from interface: `ReadStream`
      Resume reading. If the `ReadSupport` has been paused, reading will recommence on it.
      Specified by:
        `resume` in interface `ReadStream<NetSocket>`
      Returns:
        a reference to this, so the API can be used fluently

    - #### endHandler

          NetSocketStream endHandler(Handler<Void> endHandler)

      Description copied from interface: `ReadStream`
      Set an end handler. Once the stream has ended, and there is no more data to be read, this handler will be called.
      Specified by:
        `endHandler` in interface `ReadStream<NetSocket>`
      Returns:
        a reference to this, so the API can be used fluently

Copyright © 2016. All rights reserved.