congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
RestStoreConfigurationBuilder.connectionPool
Code IndexAdd Tabnine to your IDE (free)

How to use
connectionPool
method
in
org.infinispan.persistence.rest.configuration.RestStoreConfigurationBuilder

Best Java code snippets using org.infinispan.persistence.rest.configuration.RestStoreConfigurationBuilder.connectionPool (Showing top 5 results out of 315)

origin: org.infinispan/infinispan-cachestore-rest

@Override
public ConnectionPoolConfigurationBuilder connectionPool() {
 return builder.connectionPool();
}
origin: org.infinispan/infinispan-tools

private void parseRestStore(final XMLExtendedStreamReader reader, PersistenceConfigurationBuilder loadersBuilder,
   ClassLoader classLoader) throws XMLStreamException {
 RestStoreConfigurationBuilder builder = new RestStoreConfigurationBuilder(loadersBuilder);
 parseRestStoreAttributes(reader, builder, classLoader);
 while (reader.hasNext() && (reader.nextTag() != XMLStreamConstants.END_ELEMENT)) {
   Element element = Element.forName(reader.getLocalName());
   switch (element) {
   case CONNECTION_POOL: {
    parseConnectionPool(reader, builder.connectionPool());
    break;
   }
   default: {
    Parser60.parseCommonStoreChildren(reader, builder);
    break;
   }
   }
 }
 loadersBuilder.addStore(builder);
}
origin: org.infinispan.server/infinispan-server-infinispan

builder.connectionPool().bufferSize(RestStoreConfigurationResource.BUFFER_SIZE.resolveModelAttribute(context, pool).asInt());
builder.connectionPool().connectionTimeout(RestStoreConfigurationResource.CONNECTION_TIMEOUT.resolveModelAttribute(context, pool).asInt());
builder.connectionPool().maxConnectionsPerHost(RestStoreConfigurationResource.MAX_CONNECTIONS_PER_HOST.resolveModelAttribute(context, pool).asInt());
builder.connectionPool().maxTotalConnections(RestStoreConfigurationResource.MAX_TOTAL_CONNECTIONS.resolveModelAttribute(context, pool).asInt());
builder.connectionPool().socketTimeout(RestStoreConfigurationResource.SOCKET_TIMEOUT.resolveModelAttribute(context, pool).asInt());
builder.connectionPool().tcpNoDelay(RestStoreConfigurationResource.TCP_NO_DELAY.resolveModelAttribute(context, pool).asBoolean());
origin: org.infinispan/infinispan-cachestore-rest

private void parseRestStore(final XMLExtendedStreamReader reader, PersistenceConfigurationBuilder loadersBuilder) throws XMLStreamException {
 RestStoreConfigurationBuilder builder = new RestStoreConfigurationBuilder(loadersBuilder);
 parseRestStoreAttributes(reader, builder);
 while (reader.hasNext() && (reader.nextTag() != XMLStreamConstants.END_ELEMENT)) {
   Element element = Element.forName(reader.getLocalName());
   switch (element) {
    case CONNECTION_POOL: {
      parseConnectionPool(reader, builder.connectionPool());
      break;
    }
    case SERVER: {
      parseServer(reader, builder);
      break;
    }
    default: {
      Parser.parseStoreElement(reader, builder);
      break;
    }
   }
 }
 loadersBuilder.addStore(builder);
}
origin: org.infinispan/infinispan-cachestore-rest

@Override
protected AdvancedLoadWriteStore createStore() throws Exception {
 ConfigurationBuilder localBuilder = TestCacheManagerFactory.getDefaultCacheConfiguration(false);
 localBuilder.memory().evictionType(EvictionType.COUNT).size(WRITE_DELETE_BATCH_MAX_ENTRIES).expiration().wakeUpInterval(10L);
 localCacheManager = TestCacheManagerFactory.createServerModeCacheManager(localBuilder);
 localCacheManager.defineConfiguration(REMOTE_CACHE, localCacheManager.getDefaultCacheConfiguration());
 localCacheManager.getCache(REMOTE_CACHE);
 TestingUtil.replaceComponent(localCacheManager, TimeService.class, timeService, true);
 localCacheManager.getCache(REMOTE_CACHE).getAdvancedCache().getComponentRegistry().rewire();
 RestServerConfigurationBuilder restServerConfigurationBuilder = new RestServerConfigurationBuilder();
 restServerConfigurationBuilder.port(0);
 restServer = new RestServer();
 restServer.start(restServerConfigurationBuilder.build(), localCacheManager);
 ConfigurationBuilder builder = TestCacheManagerFactory.getDefaultCacheConfiguration(false);
 RestStoreConfigurationBuilder storeConfigurationBuilder = builder.persistence()
    .addStore(RestStoreConfigurationBuilder.class);
 storeConfigurationBuilder.host(restServer.getHost()).port(restServer.getPort()).path("/rest/" + REMOTE_CACHE);
 storeConfigurationBuilder.connectionPool().maxTotalConnections(10).maxConnectionsPerHost(10);
 storeConfigurationBuilder.validate();
 RestStore restStore = new RestStore();
 restStore.init(createContext(builder.build()));
 return restStore;
}
org.infinispan.persistence.rest.configurationRestStoreConfigurationBuilderconnectionPool

Popular methods of RestStoreConfigurationBuilder

  • host
  • path
  • port
  • appendCacheNameToPath
  • rawValues
  • <init>
  • key2StringMapper
  • maxContentLength
  • locking
  • metadataHelper
  • preload
  • validate
  • preload,
  • validate

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Reference (javax.naming)
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now