public class ConnectionCacheRetentionPolicy extends Object implements RetentionPolicy
Created by Jeff Gaynor
on 6/2/16 at 11:44 AM
Constructor and Description |
---|
ConnectionCacheRetentionPolicy(Cache myproxyConnectionCache,
TransactionStore transactionStore) |
Modifier and Type | Method and Description |
---|---|
boolean |
applies()
If this applies to the current cache.
|
Map |
getMap()
The cache to which this policy is applied.
|
TransactionStore |
getTransactionStore() |
boolean |
retain(Object key,
Object value) |
public ConnectionCacheRetentionPolicy(Cache myproxyConnectionCache, TransactionStore transactionStore)
public TransactionStore getTransactionStore()
public boolean applies()
RetentionPolicy
RetentionPolicy.retain(Object, Object)
method will be applied to each element of the cache. When false, this policy will be skipped.
applies
in interface RetentionPolicy
public boolean retain(Object key, Object value)
retain
in interface RetentionPolicy
public Map getMap()
RetentionPolicy
getMap
in interface RetentionPolicy
Copyright © 2019. All Rights Reserved.