public class LruStatementCache extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LruStatementCache.CacheKey |
| Constructor and Description |
|---|
LruStatementCache(int maxSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEvictionListener(LruEvictionListener<PreparedStatement> listener) |
protected void |
clear()
Evict all statements from the cache.
|
PreparedStatement |
get(LruStatementCache.CacheKey key)
The provided key is just a 'shell' JdbcPreparedStatementHandle, it comes
in with no actual 'delegate' PreparedStatement.
|
PreparedStatement |
put(LruStatementCache.CacheKey key,
PreparedStatement statement)
A statement is put into the cache.
|
void |
removeEvictionListener(LruEvictionListener<PreparedStatement> listener) |
public PreparedStatement get(LruStatementCache.CacheKey key)
key - the cache keypublic PreparedStatement put(LruStatementCache.CacheKey key, PreparedStatement statement)
key - a cache keystatement - a prepared statement handlepublic void addEvictionListener(LruEvictionListener<PreparedStatement> listener)
public void removeEvictionListener(LruEvictionListener<PreparedStatement> listener)
protected void clear()
Copyright © 2006-2016 Bitronix Software. All Rights Reserved.