org.mortbay.loadbalancer

Class ByteBufferPool

public class ByteBufferPool extends Object

Constructor Summary
ByteBufferPool()
ByteBufferPool(int capacity, boolean direct)
Method Summary
voidadd(ByteBuffer buffer)
ByteBufferget()
intgetCapacity()
booleanisDirect()
voidsetCapacity(int capacity)
voidsetDirect(boolean direct)

Constructor Detail

ByteBufferPool

public ByteBufferPool()

ByteBufferPool

public ByteBufferPool(int capacity, boolean direct)

Method Detail

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.