clustering/common/src/main/java/org/jboss/as/clustering/function/Consumers.java
public static <T extends AutoCloseable> Consumer<T> close() {
        return value -> {
            try {
                value.close();
            } catch (Throwable e) {
                ClusteringLogger.ROOT_LOGGER.failedToClose(e, value);
            }
        };
    }
public static <T extends AutoCloseable> Consumer<T> close() {
        return value -> {
            try {
                value.close();
            } catch (Throwable e) {
                ClusteringLogger.ROOT_LOGGER.failedToClose(e, value);
            }
        };
    }
public static < T extends AutoCloseable > Consumer < T > close ( ) { return value -> { try { value . close ( ) ; } catch ( Throwable e ) { ClusteringLogger . ROOT_LOGGER . failedToClose ( e , value ) ; } } ; }
Returns a consumer that closes its input.
@return a consumer that closes its input.
Returns a consumer that closes its input .