Client.IpcStreams (Apache Hadoop Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.ipc, class: Client, class: IpcStreams

Package org.apache.hadoop.ipc

# Class Client.IpcStreams

java.lang.Object
org.apache.hadoop.ipc.Client.IpcStreams

All Implemented Interfaces:
  `Closeable`, `Flushable`, `AutoCloseable`

Enclosing class:
  Client

@Private public static class Client.IpcStreams extends Object implements Closeable, Flushable
Manages the input and output streams for an IPC connection. Only exposed for use by SaslRpcClient.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `DataOutputStream`
  `out`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `void`
  `flush()`
  `ByteBuffer`
  `readResponse()`
  `void`
  `sendRequest(byte[] buf)`

  ### Methods inherited from class java.lang.Object

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

- ## Field Details

  - ### out

    public DataOutputStream out

- ## Method Details

  - ### readResponse

    public ByteBuffer readResponse() throws IOException
    Throws:
      `IOException`

  - ### sendRequest

    public void sendRequest(byte[] buf) throws IOException
    Throws:
      `IOException`

  - ### flush

    public void flush() throws IOException
    Specified by:
      `flush` in interface `Flushable`
    Throws:
      `IOException`

  - ### close

    public void close()
    Specified by:
      `close` in interface `AutoCloseable`
    Specified by:
      `close` in interface `Closeable`