* @return the number of events that were cleared
*/
protected int clearQueuedEvents() {
Cache queueCache = this.cachingService.getCache(QUEUE_CACHE_NAME, new CacheConfig(CacheScope.REQUEST));
int cleared = queueCache.size();
queueCache.clear();
return cleared;
}
/**
* This will validate the event object and set any values which are