Class EncoderSink
java.lang.Object
org.eclipse.jetty.compression.EncoderSink
- All Implemented Interfaces:
Content.Sink
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract EncoderSink.WriteRecord
encode
(boolean last, ByteBuffer content) protected void
release()
void
write
(boolean last, ByteBuffer content, Callback callback) Writes the givenByteBuffer
, notifying theCallback
when the write is complete.
-
Constructor Details
-
EncoderSink
-
-
Method Details
-
write
Description copied from interface:Content.Sink
Writes the given
ByteBuffer
, notifying theCallback
when the write is complete.Implementations guarantee that calls to this method are safely reentrant so that stack overflows are avoided in the case of mutual recursion between the execution of the
Callback
and a call to this method.- Specified by:
write
in interfaceContent.Sink
- Parameters:
last
- whether the ByteBuffer is the last to writecontent
- the ByteBuffer to writecallback
- the callback to notify when the write operation is complete
-
encode
-
release
protected void release()
-