
io.lettuce.core.internal.AsyncCloseable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lettuce-core Show documentation
Show all versions of lettuce-core Show documentation
Advanced and thread-safe Java Redis client for synchronous, asynchronous, and
reactive usage. Supports Cluster, Sentinel, Pipelining, Auto-Reconnect, Codecs
and much more.
The newest version!
package io.lettuce.core.internal;
import java.util.concurrent.CompletableFuture;
/**
* A {@link AsyncCloseable} is a resource that can be closed. The {@link #closeAsync()} method is invoked to request resources
* release that the object is holding (such as open files).
*
* @since 5.1
* @author Mark Paluch
* @deprecated since 6.2, use {@link io.lettuce.core.api.AsyncCloseable} instead.
*/
@Deprecated
public interface AsyncCloseable {
/**
* Requests to close this object and releases any system resources associated with it. If the object is already closed then
* invoking this method has no effect.
*
* Calls to this method return a {@link CompletableFuture} that is notified with the outcome of the close request.
*/
CompletableFuture closeAsync();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy