io.quarkus.resteasy.reactive.server.runtime.CloserImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-rest Show documentation
Show all versions of quarkus-rest Show documentation
A Jakarta REST implementation utilizing build time processing and Vert.x. This extension is not compatible with the quarkus-resteasy extension, or any of the extensions that depend on it.
The newest version!
package io.quarkus.resteasy.reactive.server.runtime;
import java.io.Closeable;
import java.util.ArrayList;
import java.util.List;
import org.jboss.logging.Logger;
import io.quarkus.resteasy.reactive.server.Closer;
public class CloserImpl implements Closer {
private static final Logger log = Logger.getLogger(CloserImpl.class);
private final List closables = new ArrayList<>();
@Override
public void add(Closeable c) {
closables.add(c);
}
void close() {
for (Closeable closable : closables) {
try {
closable.close();
} catch (Exception e) {
log.warn("Unable to perform close operation", e);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy