@Override
  public Executor getFunctionExecutor() {
    if (functionExecutionThread != null) {
      return functionExecutionThread;
    } else {
      return functionExecutionPool;
    }
  }
Returns the executor for the given type of processor.
geode-core/src/main/java/org/apache/geode/distributed/internal/ClusterOperationExecutors.java