org.mentawai.cache
Class SynchronizedCache
java.lang.Object
org.mentawai.cache.SynchronizedCache
- All Implemented Interfaces:
- org.jgroups.MessageListener, Cache
public class SynchronizedCache
- extends Object
- implements Cache, org.jgroups.MessageListener
|
Constructor Summary |
SynchronizedCache(String name,
String groupname,
int capacity,
Class cacheImpl)
|
SynchronizedCache(String name,
String groupname,
int capacity,
Class cacheImpl,
String jgroups_protocol_stack)
|
SynchronizedCache(String name,
String groupname,
int capacity,
float load,
Class cacheImpl)
|
SynchronizedCache(String name,
String groupname,
int capacity,
float load,
Class cacheImpl,
String jgroups_protocol_stack)
|
JGROUPS_PROTOCOL_STACK
public static final String JGROUPS_PROTOCOL_STACK
- See Also:
- Constant Field Values
SynchronizedCache
public SynchronizedCache(String name,
String groupname,
int capacity,
Class cacheImpl,
String jgroups_protocol_stack)
SynchronizedCache
public SynchronizedCache(String name,
String groupname,
int capacity,
Class cacheImpl)
SynchronizedCache
public SynchronizedCache(String name,
String groupname,
int capacity,
float load,
Class cacheImpl,
String jgroups_protocol_stack)
SynchronizedCache
public SynchronizedCache(String name,
String groupname,
int capacity,
float load,
Class cacheImpl)
get
public Object get(Object key)
- Specified by:
get in interface Cache
put
public Object put(Object key,
Object value)
- Specified by:
put in interface Cache
remove
public Object remove(Object key)
- Specified by:
remove in interface Cache
clear
public void clear()
- Specified by:
clear in interface Cache
toString
public String toString()
- Overrides:
toString in class Object
receive
public void receive(org.jgroups.Message msg)
- Specified by:
receive in interface org.jgroups.MessageListener
setState
public void setState(byte[] state)
- Specified by:
setState in interface org.jgroups.MessageListener
getState
public byte[] getState()
- Specified by:
getState in interface org.jgroups.MessageListener
Copyright © 2012. All Rights Reserved.