org.mortbay.jetty
Class AbstractBuffers
java.lang.Object
org.mortbay.component.AbstractLifeCycle
org.mortbay.jetty.AbstractBuffers
- All Implemented Interfaces:
- LifeCycle, Buffers
- Direct Known Subclasses:
- AbstractConnector
public abstract class AbstractBuffers
- extends AbstractLifeCycle
- implements Buffers
Abstract Buffer pool.
simple unbounded pool of buffers.
- Author:
- gregw
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractBuffers
public AbstractBuffers()
getHeaderBufferSize
public int getHeaderBufferSize()
- Returns:
- Returns the headerBufferSize.
setHeaderBufferSize
public void setHeaderBufferSize(int headerBufferSize)
- Parameters:
headerBufferSize
- The headerBufferSize to set.
getRequestBufferSize
public int getRequestBufferSize()
- Returns:
- Returns the requestBufferSize.
setRequestBufferSize
public void setRequestBufferSize(int requestBufferSize)
- Parameters:
requestBufferSize
- The requestBufferSize to set.
getResponseBufferSize
public int getResponseBufferSize()
- Returns:
- Returns the responseBufferSize.
setResponseBufferSize
public void setResponseBufferSize(int responseBufferSize)
- Parameters:
responseBufferSize
- The responseBufferSize to set.
newBuffer
protected abstract Buffer newBuffer(int size)
getBuffer
public Buffer getBuffer(int size)
- Specified by:
getBuffer
in interface Buffers
returnBuffer
public void returnBuffer(Buffer buffer)
- Specified by:
returnBuffer
in interface Buffers
doStart
protected void doStart()
throws Exception
- Overrides:
doStart
in class AbstractLifeCycle
- Throws:
Exception