Package org.wildfly.clustering.ee.infinispan

Examples of org.wildfly.clustering.ee.infinispan.InfinispanBatcher


*/
public class InfinispanBatcherFactory implements BatcherFactory {

    @Override
    public Batcher<TransactionBatch> createBatcher(Cache<?, ?> cache) {
        return cache.getCacheConfiguration().transaction().transactionMode().isTransactional() ? new InfinispanBatcher(cache) : null;
    }
View Full Code Here


    public <L> SSOManager<A, D, L, TransactionBatch> createSSOManager(IdentifierFactory<String> identifierFactory, LocalContextFactory<L> localContextFactory) {
        Cache<String, CoarseAuthenticationEntry<A, D, L>> authenticationCache = this.cache.getValue();
        Cache<CoarseSessionsKey, Map<D, String>> sessionsCache = this.cache.getValue();
        SSOFactory<CoarseSSOEntry<A, D, L>, A, D, L> factory = new CoarseSSOFactory<>(authenticationCache, sessionsCache, localContextFactory);
        IdentifierFactory<String> idFactory = new AffinityIdentifierFactory<>(identifierFactory, authenticationCache, this.affinityFactory.getValue());
        Batcher<TransactionBatch> batcher = new InfinispanBatcher(authenticationCache);
        return new InfinispanSSOManager<>(factory, idFactory, batcher);
    }
View Full Code Here

        return this;
    }

    @Override
    public <L> SessionManager<L, TransactionBatch> createSessionManager(final SessionContext context, IdentifierFactory<String> identifierFactory, LocalContextFactory<L> localContextFactory) {
        final Batcher<TransactionBatch> batcher = new InfinispanBatcher(this.cache.getValue());
        final IdentifierFactory<String> factory = new AffinityIdentifierFactory<>(identifierFactory, this.cache.getValue(), this.affinityFactory.getValue());
        final Cache<String, ?> cache = this.cache.getValue();
        final CommandDispatcherFactory dispatcherFactory = this.dispatcherFactory.getValue();
        final NodeFactory<Address> nodeFactory = this.nodeFactory.getValue();
        final int maxActiveSessions = this.config.getMaxActiveSessions();
View Full Code Here

        this.beanName = configuration.getBeanName();
        this.groupFactory = groupConfiguration.getFactory();
        this.beanFactory = beanConfiguration.getFactory();
        this.groupCache = groupConfiguration.getCache();
        this.beanCache = beanConfiguration.getCache();
        this.batcher = new InfinispanBatcher(this.groupCache);
        this.filter = new BeanKeyFilter<>(this.beanName);
        final Address address = this.groupCache.getCacheManager().getAddress();
        final KeyGenerator<G> groupKeyGenerator = new KeyGenerator<G>() {
            @Override
            public G getKey() {
View Full Code Here

        return this.dispatcherFactory.getValue();
    }

    @Override
    public Batcher<? extends Batch> getBatcher() {
        return new InfinispanBatcher(this.cache.getValue());
    }
View Full Code Here

        this.value = null;
    }

    @Override
    public Batcher<? extends Batch> getBatcher() {
        return new InfinispanBatcher(this.cache.getValue());
    }
View Full Code Here

TOP

Related Classes of org.wildfly.clustering.ee.infinispan.InfinispanBatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.