com.sun.grizzly.memory.slab
Class Slab
java.lang.Object
com.sun.grizzly.memory.slab.Slab
public class Slab
- extends Object
- Author:
- Ken Cavanaugh, John Vieten
|
Constructor Summary |
Slab(int size,
boolean bufferType)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Slab
public Slab(int size,
boolean bufferType)
currentPosition
public int currentPosition()
getState
public Slab.State getState()
totalSize
public int totalSize()
sizeAvailable
public int sizeAvailable()
sizeAllocated
public int sizeAllocated()
sizeDisposed
public int sizeDisposed()
markFull
public void markFull()
markEmpty
public void markEmpty()
allocate
public ByteBuffer allocate(int size)
dispose
public void dispose(ByteBuffer buffer)
trim
public ByteBuffer trim(int bufferStartPosition,
ByteBuffer buffer,
int sizeNeeded)
Copyright © 2009 SUN Microsystems. All Rights Reserved.