|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MemoryManagerService<V>
| Method Summary | ||
|---|---|---|
|
allocate(Class<T> type,
int size,
long expiresIn,
long expires)
|
|
long |
capacity()
|
|
void |
clear()
|
|
long |
collectExpired()
|
|
void |
collectLFU()
|
|
void |
free(Pointer<V> pointer)
|
|
void |
init(int numberOfBuffers,
int size)
Initialize the internal structure. |
|
byte[] |
retrieve(Pointer<V> pointer)
|
|
Pointer<V> |
store(byte[] payload)
Same function as store(byte[]), but add an relative expiration delta in milliseconds |
|
Pointer<V> |
store(byte[] payload,
int expiresIn)
Store function family. |
|
Pointer<V> |
update(Pointer<V> pointer,
byte[] payload)
Update value of a {@link Pointer |
|
long |
used()
|
|
| Method Detail |
|---|
void init(int numberOfBuffers,
int size)
numberOfBuffers - : number of internal bucketsize - : size in B of internal buckets
Pointer<V> store(byte[] payload,
int expiresIn)
payload - : the data to store
Pointer<V> store(byte[] payload)
store(byte[]), but add an relative expiration delta in milliseconds
payload - : the data to storeexpiresIn - : relative amount of milliseconds the data will expire
Pointer<V> update(Pointer<V> pointer,
byte[] payload)
pointer - payload -
byte[] retrieve(Pointer<V> pointer)
void free(Pointer<V> pointer)
void clear()
long capacity()
long used()
long collectExpired()
void collectLFU()
<T extends V> Pointer<V> allocate(Class<T> type,
int size,
long expiresIn,
long expires)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||