
public class PreparedStatementCache extends Object implements CacheListener<CachedPreparedStatement>
| Modifier and Type | Class and Description |
|---|---|
static class |
PreparedStatementCache.Key
Key class
|
| Constructor and Description |
|---|
PreparedStatementCache(int max,
JdbcStatisticsPlugin stats)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
CachedPreparedStatement |
get(PreparedStatementCache.Key key)
Get
|
void |
onEviction(CachedPreparedStatement evicted)
On eviction
|
void |
put(PreparedStatementCache.Key key,
CachedPreparedStatement value)
Put
|
int |
size()
Size
|
String |
toString() |
public PreparedStatementCache(int max,
JdbcStatisticsPlugin stats)
max - The max valuestats - The statistics pluginpublic CachedPreparedStatement get(PreparedStatementCache.Key key)
key - The keypublic void put(PreparedStatementCache.Key key, CachedPreparedStatement value)
key - The keyvalue - The valuepublic int size()
public void onEviction(CachedPreparedStatement evicted)
onEviction in interface CacheListener<CachedPreparedStatement>evicted - The value being evictedCopyright © 2013 IronJacamar (http://www.ironjacamar.org)