java.lang.Object
org.glassfish.grizzly.streams.BufferedOutput
org.glassfish.grizzly.streams.TransformerOutput
- All Implemented Interfaces:
Output
- Author:
- Alexey Stashok
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AttributeStorageprotected final MemoryManagerprotected final Transformer<Buffer,Buffer> protected final OutputFields inherited from class org.glassfish.grizzly.streams.BufferedOutput
bufferSize, isClosed, multiBufferWindow, ZERO, ZERO_READY_FUTURE -
Constructor Summary
ConstructorsConstructorDescriptionTransformerOutput(Transformer<Buffer, Buffer> transformer, Output underlyingOutput, Connection connection) TransformerOutput(Transformer<Buffer, Buffer> transformer, Output underlyingOutput, MemoryManager memoryManager, AttributeStorage attributeStorage) -
Method Summary
Modifier and TypeMethodDescriptionprotected GrizzlyFuture<Integer>flush0(Buffer buffer, CompletionHandler<Integer> completionHandler) protected BuffernewBuffer(int size) protected voidonClosed()protected BufferreallocateBuffer(Buffer oldBuffer, int size) Methods inherited from class org.glassfish.grizzly.streams.BufferedOutput
close, ensureBufferCapacity, flush, getBuffer, getBufferedSize, isBuffered, write, write
-
Field Details
-
transformer
-
underlyingOutput
-
memoryManager
-
attributeStorage
-
-
Constructor Details
-
TransformerOutput
public TransformerOutput(Transformer<Buffer, Buffer> transformer, Output underlyingOutput, Connection connection) -
TransformerOutput
public TransformerOutput(Transformer<Buffer, Buffer> transformer, Output underlyingOutput, MemoryManager memoryManager, AttributeStorage attributeStorage)
-
-
Method Details
-
flush0
protected GrizzlyFuture<Integer> flush0(Buffer buffer, CompletionHandler<Integer> completionHandler) throws IOException - Specified by:
flush0in classBufferedOutput- Throws:
IOException
-
newBuffer
- Specified by:
newBufferin classBufferedOutput
-
reallocateBuffer
- Specified by:
reallocateBufferin classBufferedOutput
-
onClosed
- Specified by:
onClosedin classBufferedOutput- Throws:
IOException
-