org.mortbay.loadbalancer

Class ByteBufferPool


public class ByteBufferPool
extends java.lang.Object

Constructor Summary

ByteBufferPool()
ByteBufferPool(int capacity, boolean direct)

Method Summary

void
add(ByteBuffer buffer)
ByteBuffer
get()
int
getCapacity()
boolean
isDirect()
void
setCapacity(int capacity)
void
setDirect(boolean direct)

Constructor Details

ByteBufferPool

public ByteBufferPool()

ByteBufferPool

public ByteBufferPool(int capacity,
                      boolean direct)

Method Details

add

public void add(ByteBuffer buffer)

get

public ByteBuffer get()

getCapacity

public int getCapacity()

isDirect

public boolean isDirect()

setCapacity

public void setCapacity(int capacity)

setDirect

public void setDirect(boolean direct)

Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.