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

io.synadia.jnats.extension.RetryAction Maven / Gradle / Ivy

There is a newer version: 0.2.0
Show newest version
// Copyright (c) 2024 Synadia Communications Inc. All Rights Reserved.
// See LICENSE and NOTICE file for details.

package io.synadia.jnats.extension;

/**
 * The action to execute with retry.
 * @param  The return type of the action
 */
public interface RetryAction {
    /**
     * Execute the action
     * @return the result
     * @throws Exception various execution exceptions; The execution throws the last exception
     * if all retries failed or the observer declines to retry.
     */
    T execute() throws Exception;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy