コード例 #1
0
  @Override
  public Long getThreadKeepAliveTime() throws IOException {
    Long res = null;

    {
      final Long defaultValue = THREAD_KEEP_ALIVE_TIME_DEFAULT;

      res = config.getPropertyAsLong("thread-pool.time-keep-alive", defaultValue);

      if (res == null) {
        res = super.getThreadKeepAliveTime();
      }

      if (res == null) {
        res = defaultValue;
      }
    }

    return res;
  }