Interface BodyConsumer

All Superinterfaces:
AutoCloseable, Closeable
All Known Subinterfaces:
ResumableBodyConsumer
All Known Implementing Classes:
AppendableBodyConsumer, ByteBufferBodyConsumer, FileBodyConsumer, OutputStreamBodyConsumer

public interface BodyConsumer extends Closeable
A simple API to be used with the SimpleAsyncHttpClient class in order to process response's bytes.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    consume(ByteBuffer byteBuffer)
    Consume the received bytes.

    Methods inherited from interface java.io.Closeable

    close