use of org.infinispan.notifications.cachelistener.annotation.CacheEntryActivated in project wildfly by wildfly.
the class InfinispanSessionManager method activated.
@CacheEntryActivated
public void activated(CacheEntryActivatedEvent<SessionCreationMetaDataKey, ?> event) {
if (!event.isPre() && !this.properties.isPersistent()) {
String id = event.getKey().getValue();
InfinispanWebLogger.ROOT_LOGGER.tracef("Session %s was activated", id);
Map.Entry<MV, AV> value = this.factory.findValue(id);
if (value != null) {
ImmutableSession session = this.factory.createImmutableSession(id, value);
this.triggerPostActivationEvents(session);
}
}
}
Aggregations