Package org.infinispan.iteration.impl

Examples of org.infinispan.iteration.impl.DistributedEntryRetriever


@DefaultFactoryFor(classes = {EntryRetriever.class})
public class EntryRetrieverFactory extends AbstractNamedCacheComponentFactory implements AutoInstantiableFactory {
   @Override
   public <T> T construct(Class<T> componentType) {
      if (configuration.clustering().cacheMode().isDistributed()) {
         return (T) new DistributedEntryRetriever(configuration.clustering().stateTransfer().chunkSize(),
                                                  configuration.clustering().stateTransfer().timeout(), TimeUnit.MILLISECONDS);
      } else {
         return (T) new LocalEntryRetriever(configuration.clustering().stateTransfer().chunkSize(),
                                            configuration.clustering().stateTransfer().timeout(), TimeUnit.MILLISECONDS);
      }
View Full Code Here

TOP

Related Classes of org.infinispan.iteration.impl.DistributedEntryRetriever

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.