public class InternalAprOutputBuffer extends AbstractOutputBuffer<Long>
Modifier and Type | Class and Description |
---|---|
protected class |
InternalAprOutputBuffer.SocketOutputBuffer
This class is an output buffer which will write data to an output
stream.
|
activeFilters, bufferedWrites, bufferedWriteSize, byteCount, committed, filterLibrary, finished, headerBuffer, lastActiveFilter, outputStreamOutputBuffer, pos, response, sm, socketBuffer
Constructor and Description |
---|
InternalAprOutputBuffer(Response response,
int headerBufferSize)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
commit()
Commit the response.
|
protected boolean |
flushBuffer(boolean block)
Writes any remaining buffered data.
|
protected boolean |
hasMoreDataToFlush() |
void |
init(SocketWrapper<Long> socketWrapper,
AbstractEndpoint<Long> endpoint) |
void |
recycle()
Recycle the output buffer.
|
protected void |
registerWriteInterest() |
void |
sendAck()
Send an acknowledgment.
|
addActiveFilter, addFilter, doWrite, endHeaders, endRequest, flush, getBufferedWriteSize, getBytesWritten, getFilters, getSocketBuffer, hasBufferedData, hasDataToWrite, isBlocking, isReady, nextRequest, reset, sendHeader, sendStatus, setBufferedWriteSize, setSocketBuffer, write, write, write, write, write
public InternalAprOutputBuffer(Response response, int headerBufferSize)
public void init(SocketWrapper<Long> socketWrapper, AbstractEndpoint<Long> endpoint) throws IOException
init
in class AbstractOutputBuffer<Long>
IOException
public void recycle()
recycle
in class AbstractOutputBuffer<Long>
public void sendAck() throws IOException
sendAck
in class AbstractOutputBuffer<Long>
IOException
protected void commit() throws IOException
commit
in class AbstractOutputBuffer<Long>
IOException
- an underlying I/O error occurredprotected boolean flushBuffer(boolean block) throws IOException
AbstractOutputBuffer
flushBuffer
in class AbstractOutputBuffer<Long>
block
- Should this method block until the buffer is emptytrue
if data remains in the buffer (which can only
happen in non-blocking mode) else false
.IOException
protected boolean hasMoreDataToFlush()
hasMoreDataToFlush
in class AbstractOutputBuffer<Long>
protected void registerWriteInterest()
registerWriteInterest
in class AbstractOutputBuffer<Long>
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.