Tabnine Logo
Pool.timeout
Code IndexAdd Tabnine to your IDE (free)

How to use
timeout
method
in
org.jboss.ejb3.annotation.Pool

Best Java code snippets using org.jboss.ejb3.annotation.Pool.timeout (Showing top 2 results out of 315)

origin: org.jboss.ejb3/jboss-ejb3-core

protected void initializePool() throws Exception
{
 org.jboss.ejb3.annotation.Pool poolAnnotation = getAnnotation(org.jboss.ejb3.annotation.Pool.class);
 if (poolAnnotation == null)
   throw new IllegalStateException("No pool annotation");
 String registeredPoolName = poolAnnotation.value();
 // EJBTHREE-1119
 if(registeredPoolName==null||registeredPoolName.trim().equals(""))
 {
   // Default the Pool Implementation
   registeredPoolName = PoolDefaults.POOL_IMPLEMENTATION_THREADLOCAL;
 }
 int maxSize = poolAnnotation.maxSize();
 long timeout = poolAnnotation.timeout();
 PoolFactoryRegistry registry = deployment.getPoolFactoryRegistry();
 PoolFactory factory = registry.getPoolFactory(registeredPoolName);
 pool = factory.createPool();
 pool.initialize(this, maxSize, timeout);
 pool.setInjectors(injectors.toArray(new Injector[injectors.size()]));
}
origin: org.jboss.ws/jbossws-jboss510-metadata

public void process(JBossEnterpriseBeanMetaData metaData, Class<?> type)
{
 Pool annotation = finder.getAnnotation(type, Pool.class); 
 if(annotation == null)
   return;
 
 PoolConfigMetaData poolConfig = new PoolConfigMetaData();
 poolConfig.setMaxSize(Integer.valueOf(annotation.maxSize()));
 poolConfig.setTimeout(Integer.valueOf((int) annotation.timeout()));
 poolConfig.setValue(annotation.value());
 metaData.setPoolConfig(poolConfig);
}
org.jboss.ejb3.annotationPooltimeout

Popular methods of Pool

  • maxSize
  • value

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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