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 .