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.WriteRecordencode(boolean last, ByteBuffer content) protected voidrelease()Release all resources held by this instance.voidwrite(boolean last, ByteBuffer content, Callback callback) Writes the givenByteBuffer, notifying theCallbackwhen the write is complete. 
- 
Constructor Details
- 
EncoderSink
 
 - 
 - 
Method Details
- 
write
Description copied from interface:Content.SinkWrites the given
ByteBuffer, notifying theCallbackwhen 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
Callbackand a call to this method.- Specified by:
 writein 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
- Parameters:
 last- thelastflag to eventually pass toContent.Sink.write(boolean, ByteBuffer, Callback).content- the buffer to eventually pass toContent.Sink.write(boolean, ByteBuffer, Callback).- Returns:
 - the 
EncoderSink.WriteRecord. - Throws:
 IllegalStateException- ifrelease()has already been called.
 - 
release
protected void release()Release all resources held by this instance. Any further
write attemptfails once this method has been called.Implementation must be idempotent.
 
 -