public static class ChunkedTransfer.Sender extends Object implements net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException>
| Constructor and Description |
|---|
Sender(net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> sender,
Supplier<List<MimeHeader>> trailerSupplier)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
net.lecousin.framework.concurrent.async.IAsync<IOException> |
consume(ByteBuffer data) |
net.lecousin.framework.concurrent.async.IAsync<IOException> |
end() |
void |
error(IOException error) |
public Sender(net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> sender, Supplier<List<MimeHeader>> trailerSupplier)
public net.lecousin.framework.concurrent.async.IAsync<IOException> consume(ByteBuffer data)
consume in interface net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException>public net.lecousin.framework.concurrent.async.IAsync<IOException> end()
end in interface net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException>public void error(IOException error)
error in interface net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException>Copyright © 2020. All rights reserved.