Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.infinispan.client.hotrod.configuration;
  
  
Configures executor factory.

Author(s):
Tristan Tarrant
Since:
5.3
 
 
    private Class<? extends ExecutorFactoryfactoryClass = DefaultAsyncExecutorFactory.class;
    private ExecutorFactory factory;
    private Properties properties;
    private final ConfigurationBuilder builder;
 
       super(builder);
       this. = builder;
       this. = new Properties();
    }

   
Specify factory class for executor

Parameters:
factory clazz
Returns:
this ExecutorFactoryConfig
 
    public ExecutorFactoryConfigurationBuilder factoryClass(Class<? extends ExecutorFactoryfactoryClass) {
       this. = factoryClass;
       return this;
    }
 
    public ExecutorFactoryConfigurationBuilder factoryClass(String factoryClass) {
       this. = Util.loadClass(factoryClass.classLoader());
       return this;
    }

   
Specify factory class for executor

Parameters:
factory clazz
Returns:
this ExecutorFactoryConfig
 
       this. = factory;
       return this;
    }

   
Add key/value property pair to this executor factory configuration

Parameters:
key property key
value property value
Returns:
previous value if exists, null otherwise
 
       this..put(keyvalue);
       return this;
    }

   
Set key/value properties to this executor factory configuration

Parameters:
props Properties
Returns:
this ExecutorFactoryConfig
 
       this. = props;
       return this;
    }
 
    @Override
    public void validate() {
    }
 
    @Override
       if ( != null)
          return new ExecutorFactoryConfiguration(, TypedProperties.toTypedProperties());
       else
          return new ExecutorFactoryConfiguration(, TypedProperties.toTypedProperties());
    }
 
    @Override
       this. = template.factory();
      this. = template.factoryClass();
      this. = template.properties();
      return this;
   }
   public String toString() {
      return "ExecutorFactoryConfigurationBuilder [factoryClass=" +  + ", factory=" +  + ", properties=" +  + "]";
   }
New to GrepCode? Check out our FAQ X