Search in sources :

Example 1 with CacheEntryActivated

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);
        }
    }
}
Also used : ImmutableSession(org.wildfly.clustering.web.session.ImmutableSession) Map(java.util.Map) CacheEntryActivated(org.infinispan.notifications.cachelistener.annotation.CacheEntryActivated)

Aggregations

Map (java.util.Map)1 CacheEntryActivated (org.infinispan.notifications.cachelistener.annotation.CacheEntryActivated)1 ImmutableSession (org.wildfly.clustering.web.session.ImmutableSession)1