Class/Object

zio.nio.channels

AsynchronousByteChannel

Related Docs: object AsynchronousByteChannel | package channels

Permalink

abstract class AsynchronousByteChannel extends Channel

A byte channel that reads and writes asynchronously.

The read and write operations will never block the calling thread.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsynchronousByteChannel
  2. Channel
  3. IOCloseable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val channel: java.nio.channels.AsynchronousByteChannel

    Permalink
    Attributes
    protected
    Definition Classes
    AsynchronousByteChannelChannel
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def close(implicit trace: Trace): IO[IOException, Unit]

    Permalink

    Closes this channel.

    Closes this channel.

    Definition Classes
    ChannelIOCloseable
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def isOpen(implicit trace: Trace): UIO[Boolean]

    Permalink

    Tells whether or not this channel is open.

    Tells whether or not this channel is open.

    Definition Classes
    Channel
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def read(b: ByteBuffer)(implicit trace: Trace): IO[IOException, Int]

    Permalink

    Reads data from this channel into buffer, returning the number of bytes read.

    Reads data from this channel into buffer, returning the number of bytes read.

    Fails with java.io.EOFException if end-of-stream is reached.

  19. final def readChunk(capacity: Int)(implicit trace: Trace): IO[IOException, Chunk[Byte]]

    Permalink
  20. def sink(bufferConstruct0: ⇒ UIO[ByteBuffer])(implicit trace: Trace): ZSink[Any, IOException, Byte, Byte, Long]

    Permalink

    A sink that will write all the bytes it receives to this channel.

  21. def sink()(implicit trace: Trace): ZSink[Any, IOException, Byte, Byte, Long]

    Permalink
  22. def stream(bufferConstruct: UIO[ByteBuffer])(implicit trace: Trace): Stream[IOException, Byte]

    Permalink

    A ZStream that reads from this channel.

    A ZStream that reads from this channel. The stream terminates without error if the channel reaches end-of-stream.

    bufferConstruct

    Optional, overrides how to construct the buffer used to transfer bytes read from this channel into the stream.

  23. def stream()(implicit trace: Trace): Stream[IOException, Byte]

    Permalink
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def write(b: ByteBuffer)(implicit trace: Trace): IO[IOException, Int]

    Permalink

    Writes data into this channel from buffer, returning the number of bytes written.

  30. final def writeChunk(chunk: Chunk[Byte])(implicit trace: Trace): ZIO[Any, IOException, Unit]

    Permalink

    Writes a chunk of bytes to this channel.

    Writes a chunk of bytes to this channel.

    More than one write operation may be performed to write out the entire chunk.

Inherited from Channel

Inherited from IOCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped