org.glassfish.grizzly.memory
Interface ThreadLocalPool<E>

Type Parameters:
E -

public interface ThreadLocalPool<E>

TODO Documentation


Method Summary
 E allocate(int size)
           
 boolean hasRemaining()
           
 boolean isLastAllocated(E oldBuffer)
           
 E reallocate(E oldBuffer, int newSize)
           
 E reduceLastAllocated(E buffer)
           
 boolean release(E underlyingBuffer)
           
 int remaining()
           
 void reset(E pool)
           
 boolean wantReset(int size)
           
 

Method Detail

reset

void reset(E pool)

allocate

E allocate(int size)

reallocate

E reallocate(E oldBuffer,
             int newSize)

release

boolean release(E underlyingBuffer)

isLastAllocated

boolean isLastAllocated(E oldBuffer)

reduceLastAllocated

E reduceLastAllocated(E buffer)

wantReset

boolean wantReset(int size)

remaining

int remaining()

hasRemaining

boolean hasRemaining()


Copyright © 2012 Oracle Corporation. All Rights Reserved.