use of org.wildfly.clustering.web.cache.session.SimpleSessionAccessMetaData in project wildfly by wildfly.
the class AbstractInfinispanSessionMetaDataFactory method createValue.
@Override
public CompositeSessionMetaDataEntry<L> createValue(String id, Void context) {
Map<Key<String>, Object> entries = new HashMap<>(3);
SessionCreationMetaDataEntry<L> creationMetaDataEntry = new SessionCreationMetaDataEntry<>(new SimpleSessionCreationMetaData());
entries.put(new SessionCreationMetaDataKey(id), creationMetaDataEntry);
SessionAccessMetaData accessMetaData = new SimpleSessionAccessMetaData();
entries.put(new SessionAccessMetaDataKey(id), accessMetaData);
this.writeCache.putAll(entries);
return new CompositeSessionMetaDataEntry<>(creationMetaDataEntry, accessMetaData);
}
use of org.wildfly.clustering.web.cache.session.SimpleSessionAccessMetaData in project wildfly by wildfly.
the class HotRodSessionMetaDataFactory method createValue.
@Override
public CompositeSessionMetaDataEntry<L> createValue(String id, Void context) {
SessionCreationMetaDataEntry<L> creationMetaDataEntry = new SessionCreationMetaDataEntry<>(new SimpleSessionCreationMetaData());
SessionAccessMetaData accessMetaData = new SimpleSessionAccessMetaData();
this.creationMetaDataMutatorFactory.createMutator(new SessionCreationMetaDataKey(id), creationMetaDataEntry).mutate();
this.accessMetaDataMutatorFactory.createMutator(new SessionAccessMetaDataKey(id), accessMetaData).mutate();
return new CompositeSessionMetaDataEntry<>(creationMetaDataEntry, accessMetaData);
}
Aggregations