Interface ICacheEventLogger
- All Known Implementing Classes:
- CacheEventLoggerDebugLogger
public interface ICacheEventLogger
This defines the behavior for event logging. Auxiliaries will send events to injected event
 loggers.
 
In general all ICache interface methods should call the logger if one is configured. This will be done on an ad hoc basis for now. Various auxiliaries may have additional events.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescription<T> ICacheEvent<T>createICacheEvent(String source, String region, String eventName, String optionalDetails, T key) Creates an event.voidlogApplicationEvent(String source, String eventName, String optionalDetails) Logs an event.voidLogs an error.<T> voidlogICacheEvent(ICacheEvent<T> event) Logs an event.
- 
Field Details- 
UPDATE_EVENTICache update- See Also:
 
- 
GET_EVENTICache get- See Also:
 
- 
GETMULTIPLE_EVENTICache getMultiple- See Also:
 
- 
GETMATCHING_EVENTICache getMatching- See Also:
 
- 
REMOVE_EVENTICache remove- See Also:
 
- 
REMOVEALL_EVENTICache removeAll- See Also:
 
- 
DISPOSE_EVENTICache dispose- See Also:
 
 
- 
- 
Method Details- 
createICacheEvent<T> ICacheEvent<T> createICacheEvent(String source, String region, String eventName, String optionalDetails, T key) Creates an event.- Parameters:
- source- - e.g. RemoteCacheServer
- region- - the name of the region
- eventName- - e.g. update, get, put, remove
- optionalDetails- - any extra message
- key- - the cache key
- Returns:
- ICacheEvent
 
- 
logICacheEventLogs an event.- Parameters:
- event- - the event created in createICacheEvent
 
- 
logApplicationEventLogs an event. These are internal application events that do not correspond to ICache calls.- Parameters:
- source- - e.g. RemoteCacheServer
- eventName- - e.g. update, get, put, remove
- optionalDetails- - any extra message
 
- 
logErrorLogs an error.- Parameters:
- source- - e.g. RemoteCacheServer
- eventName- - e.g. update, get, put, remove
- errorMessage- - any error message
 
 
-