public static class ChunkedTransfer.Receiver extends Object implements net.lecousin.framework.concurrent.util.PartialAsyncConsumer<ByteBuffer,IOException>
net.lecousin.framework.concurrent.util.PartialAsyncConsumer.ConsumerQueue<T,TError extends Exception>, net.lecousin.framework.concurrent.util.PartialAsyncConsumer.Converter<T,TError extends Exception,Target,TErrorTarget extends Exception>, net.lecousin.framework.concurrent.util.PartialAsyncConsumer.ErrorConverter<T,TErrorSource extends Exception,TErrorTarget extends Exception>| Constructor and Description |
|---|
Receiver(MimeHeaders headers,
net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> consumer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
net.lecousin.framework.concurrent.async.AsyncSupplier<Boolean,IOException> |
consume(ByteBuffer buf) |
boolean |
isExpectingData() |
public Receiver(MimeHeaders headers, net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> consumer)
public net.lecousin.framework.concurrent.async.AsyncSupplier<Boolean,IOException> consume(ByteBuffer buf)
consume in interface net.lecousin.framework.concurrent.util.PartialAsyncConsumer<ByteBuffer,IOException>public boolean isExpectingData()
isExpectingData in interface net.lecousin.framework.concurrent.util.PartialAsyncConsumer<ByteBuffer,IOException>Copyright © 2020. All rights reserved.