Interface CacheProvider
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
AbstractInfinispanLogMinerEventProcessor,EmbeddedInfinispanLogMinerEventProcessor,RemoteInfinispanLogMinerEventProcessor
public interface CacheProvider extends AutoCloseable
- Author:
- Chris Cranford
-
-
Field Summary
Fields Modifier and Type Field Description static StringEVENTS_CACHE_NAMEThe name for the LogMiner events cachestatic StringPROCESSED_TRANSACTIONS_CACHE_NAMEThe name for the recently processed transactions cachestatic StringSCHEMA_CHANGES_CACHE_NAMEThe name for the schema changes cachestatic StringTRANSACTIONS_CACHE_NAMEThe name for the transaction cache
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddisplayCacheStatistics()Displays cache statisticsorg.infinispan.commons.api.BasicCache<String,LogMinerEvent>getEventCache()Get the LogMiner events cache Key - The event id, in the format oftransactionId-eventSequenceValue - The raw LogMinerEvent object instanceorg.infinispan.commons.api.BasicCache<String,String>getProcessedTransactionsCache()Get the processed transactions cache Key - The unique transaction id Value - The transaction's commit or rollback system change numberorg.infinispan.commons.api.BasicCache<String,String>getSchemaChangesCache()Get the Schema Changes cache Key - The system change number of the schema change Value - The table the schema change is related toorg.infinispan.commons.api.BasicCache<String,InfinispanTransaction>getTransactionCache()Get the transaction cache Key - The unique transaction id Value - The transaction instance-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Field Detail
-
TRANSACTIONS_CACHE_NAME
static final String TRANSACTIONS_CACHE_NAME
The name for the transaction cache- See Also:
- Constant Field Values
-
PROCESSED_TRANSACTIONS_CACHE_NAME
static final String PROCESSED_TRANSACTIONS_CACHE_NAME
The name for the recently processed transactions cache- See Also:
- Constant Field Values
-
SCHEMA_CHANGES_CACHE_NAME
static final String SCHEMA_CHANGES_CACHE_NAME
The name for the schema changes cache- See Also:
- Constant Field Values
-
EVENTS_CACHE_NAME
static final String EVENTS_CACHE_NAME
The name for the LogMiner events cache- See Also:
- Constant Field Values
-
-
Method Detail
-
displayCacheStatistics
void displayCacheStatistics()
Displays cache statistics
-
getTransactionCache
org.infinispan.commons.api.BasicCache<String,InfinispanTransaction> getTransactionCache()
Get the transaction cache- Key - The unique transaction id
- Value - The transaction instance
- Returns:
- the transaction cache, never
null
-
getEventCache
org.infinispan.commons.api.BasicCache<String,LogMinerEvent> getEventCache()
Get the LogMiner events cache- Key - The event id, in the format of
transactionId-eventSequence - Value - The raw LogMinerEvent object instance
- Returns:
- the evnts cache, never
null
- Key - The event id, in the format of
-
getSchemaChangesCache
org.infinispan.commons.api.BasicCache<String,String> getSchemaChangesCache()
Get the Schema Changes cache- Key - The system change number of the schema change
- Value - The table the schema change is related to
- Returns:
- the schema changes cache, never
null
-
getProcessedTransactionsCache
org.infinispan.commons.api.BasicCache<String,String> getProcessedTransactionsCache()
Get the processed transactions cache- Key - The unique transaction id
- Value - The transaction's commit or rollback system change number
- Returns:
- the processed transactions cache, never
null
-
-