private static <K, V> Cache<K, V> buildCache(long maxSize, @Nullable Duration maxAge,
                                                 @Nullable Duration maxIdle) {
        return buildCache(maxSize, maxAge, maxIdle, Runtime.getRuntime().availableProcessors());
    }
This handler available to execute custom shutdown sequence.
resteasy/src/main/java/com/linecorp/armeria/server/resteasy/ResteasyService.java