@Override
    public void close() {
        if (shouldShutdownExecutor) {
            executor.shutdown();
        }
    }
Predicate to determine whether a async refresh can be done rather than a blocking refresh.
aws-java-sdk-sts/src/main/java/com/amazonaws/auth/RefreshableTask.java