public class SoftMapCache
extends java.lang.Object
Constructor | Description |
---|---|
SoftMapCache(boolean synched) |
Creates a new soft cache.
|
Modifier and Type | Method | Description |
---|---|---|
void |
clear() |
Clears the cache.
|
void |
doHouseKeeping() |
Triggers some house-keeping, i.e.
|
java.lang.Object |
get(java.lang.Object key) |
Returns the value associated with the given key.
|
void |
put(java.lang.Object key,
java.lang.Object value) |
Put a new value in the cache overwriting any existing value with the same key.
|
java.lang.Object |
remove(java.lang.Object key) |
Removed the value associated with the given key.
|
public SoftMapCache(boolean synched)
synched
- true if the Map containing the values should by synchronizedpublic java.lang.Object get(java.lang.Object key)
key
- the keypublic java.lang.Object remove(java.lang.Object key)
key
- the keypublic void put(java.lang.Object key, java.lang.Object value)
key
- The keyvalue
- the valuepublic void clear()
public void doHouseKeeping()
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.