use of org.infinispan.notifications.cachelistener.annotation.CacheEntryCreated in project indy by Commonjava.
the class ScheduleManager method scheduled.
@CacheEntryCreated
public void scheduled(final CacheEntryCreatedEvent<ScheduleKey, Map> e) {
final ScheduleKey expiredKey = e.getKey();
final Map expiredContent = e.getValue();
if (expiredKey != null && expiredContent != null) {
logger.debug("Expiration Created: {}", expiredKey);
final String type = (String) expiredContent.get(ScheduleManager.JOB_TYPE);
final String data = (String) expiredContent.get(ScheduleManager.PAYLOAD);
eventDispatcher.fire(new SchedulerScheduleEvent(type, data));
}
}
Aggregations