public class BlockingCache extends Object implements Cache
Constructor and Description |
---|
BlockingCache(Cache delegate) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears this cache instance
|
String |
getId() |
Object |
getObject(Object key) |
ReadWriteLock |
getReadWriteLock()
Optional.
|
int |
getSize()
Optional.
|
long |
getTimeout() |
void |
putObject(Object key,
Object value) |
Object |
removeObject(Object key)
As of 3.3.0 this method is only called during a rollback
for any previous value that was missing in the cache.
|
void |
setTimeout(long timeout) |
public BlockingCache(Cache delegate)
public String getId()
public int getSize()
Cache
public Object removeObject(Object key)
Cache
removeObject
in interface Cache
key
- The keypublic void clear()
Cache
public ReadWriteLock getReadWriteLock()
Cache
getReadWriteLock
in interface Cache
public long getTimeout()
public void setTimeout(long timeout)
Copyright © 2010–2015 MyBatis.org. All rights reserved.