public class CacheSwapper extends Object implements Swapper, Serializable
| Constructor and Description |
|---|
CacheSwapper(Cache cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Remove todos os agrupamentos.
|
Swapper |
clone() |
void |
destroy()
Destrói todos as agrupamentos.
|
Entry<?> |
getItem(long index)
Recupera uma entidade do agrupamento.
|
long |
getMaxalive() |
void |
sendItem(long index,
Entry<?> item)
Envia uma entidade para o agrupamento.
|
void |
sendItem(long index,
Object item) |
void |
setId(String value)
Define a identificação do agrupamento de entidades.
|
void |
setMaxalive(long maxalive) |
public CacheSwapper(Cache cache)
public void setId(String value)
Swapperpublic void sendItem(long index,
Entry<?> item)
Swapperpublic void sendItem(long index,
Object item)
throws StorageException
StorageExceptionpublic Entry<?> getItem(long index)
Swapperpublic long getMaxalive()
public void setMaxalive(long maxalive)
public void clear()
Swapperpublic void destroy()
SwapperCache associado a ele é destruido.Copyright © 2016. All rights reserved.