2015/07/26 - Apache DirectMemory has been retired.

For more information, please explore the Attic.

public class

PointerImpl

extends Object
implements Pointer<T>
java.lang.Object
   ↳ org.apache.directmemory.memory.PointerImpl<T>

Summary

Fields
public final int bufferNumber
public Class<? extends T> clazz
public long created
public long expires
public long expiresIn
public final AtomicBoolean free
public long hits
public final AtomicLong lastHit
public final MemoryBuffer memoryBuffer
Public Constructors
PointerImpl(MemoryBuffer memoryBuffer, int bufferNumber)
Public Methods
byte[] content()
void createdNow()
int getBufferNumber()
long getCapacity()
Class<? extends T> getClazz()
long getExpires()
long getExpiresIn()
float getFrequency()
MemoryBuffer getMemoryBuffer()
long getSize()
void hit()
boolean isExpired()
boolean isFree()
void reset()
void setClazz(Class<? extends T> clazz)
void setExpiration(long expires, long expiresIn)
void setFree(boolean free)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.directmemory.memory.Pointer

Fields

public final int bufferNumber

public Class<? extends T> clazz

public long created

public long expires

public long expiresIn

public final AtomicBoolean free

public long hits

public final AtomicLong lastHit

public final MemoryBuffer memoryBuffer

Public Constructors

public PointerImpl (MemoryBuffer memoryBuffer, int bufferNumber)

Public Methods

public byte[] content ()

public void createdNow ()

public int getBufferNumber ()

public long getCapacity ()

public Class<? extends T> getClazz ()

public long getExpires ()

public long getExpiresIn ()

public float getFrequency ()

public MemoryBuffer getMemoryBuffer ()

public long getSize ()

public void hit ()

public boolean isExpired ()

public boolean isFree ()

public void reset ()

public void setClazz (Class<? extends T> clazz)

public void setExpiration (long expires, long expiresIn)

public void setFree (boolean free)

public String toString ()