예제 #1
0
  /** Starts processing the input. */
  @Override
  public void start() {
    if (!isEnabled()) {
      return;
    }
    LOGGER.info("Starting " + toString());

    executorService =
        Executors.newFixedThreadPool(
            1,
            new ThreadFactoryBuilder()
                .setDaemon(false)
                .setNameFormat(getDaemonConnection().getConnectionName() + "-abstract-runner-%d")
                .build());
    receiver = new SynchronousRequestReceiver();
    executorService.execute(receiver);

    setOperational(true);
  }