All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.lettuce.core.api.AsyncCloseable Maven / Gradle / Ivy

Go to download

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.api;

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 6.2
 * @author Mark Paluch
 */
public interface AsyncCloseable extends io.lettuce.core.internal.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