io.synadia.jnats.extension.RetryAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of retrier Show documentation
Show all versions of retrier Show documentation
Synadia Communications Inc. Retrier Utility
// 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