예제 #1
0
 /**
  * Sets the timer scheduler for the engine.
  *
  * <p>The lifecycle of the scheduler is not managed by the engine.
  *
  * @param timerScheduler the scheduler to use for the engine
  * @return this builder
  */
 public EngineBuilder setTimerScheduler(final ScheduledExecutorService timerScheduler) {
   ArgumentUtil.notNull(timerScheduler, "timerScheduler");
   setTimerScheduler(adaptTimerScheduler(timerScheduler));
   return this;
 }
예제 #2
0
 /**
  * Sets the task executor for the engine.
  *
  * <p>The lifecycle of the executor is not managed by the engine.
  *
  * @param taskExecutor the executor to use for the engine
  * @return this builder
  */
 public EngineBuilder setTaskExecutor(final Executor taskExecutor) {
   ArgumentUtil.notNull(taskExecutor, "taskExecutor");
   _taskExecutor = taskExecutor;
   return this;
 }
예제 #3
0
 /**
  * Sets the timer scheduler for the engine.
  *
  * <p>The lifecycle of the scheduler is not managed by the engine.
  *
  * @param timerScheduler the scheduler to use for the engine
  * @return this builder
  */
 public EngineBuilder setTimerScheduler(final DelayedExecutor timerScheduler) {
   ArgumentUtil.notNull(timerScheduler, "timerScheduler");
   _timerScheduler = timerScheduler;
   return this;
 }
예제 #4
0
 /**
  * Sets the logger factory that will be used by the engine. By default the engine will use
  * whatever log binding SLF4J has detected.
  *
  * @param loggerFactory the logger factory to used by the engine.
  * @return this builder
  */
 public EngineBuilder setLoggerFactory(final ILoggerFactory loggerFactory) {
   ArgumentUtil.notNull(loggerFactory, "loggerFactory");
   _loggerFactory = loggerFactory;
   return this;
 }