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

com.quorum.tessera.recovery.resend.BatchTransactionRequester Maven / Gradle / Ivy

Go to download

Tessera is a stateless Java system that is used to enable the encryption, decryption, and distribution of private transactions for Quorum.

There is a newer version: 24.4.2
Show newest version
package com.quorum.tessera.recovery.resend;

import com.quorum.tessera.serviceloader.ServiceLoaderUtil;
import java.util.ServiceLoader;

/**
 * Makes requests to other nodes to resend their transactions
 *
 * 

Handles creating the correct entity and retrying on a failed attempt */ public interface BatchTransactionRequester { int MAX_ATTEMPTS = 5; /** * Makes a request to the given node to resend transactions for * * @param url the URL to contact for resending * @return whether all the resend requests for all keys was successful or not */ boolean requestAllTransactionsFromNode(String url); /** * Makes a request to the given node that run on a legacy version to resend transactions * * @param url * @return */ boolean requestAllTransactionsFromLegacyNode(String url); static BatchTransactionRequester create() { return ServiceLoaderUtil.loadSingle(ServiceLoader.load(BatchTransactionRequester.class)); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy