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

com.quorum.tessera.p2p.resend.TransactionRequester Maven / Gradle / Ivy

package com.quorum.tessera.p2p.resend;

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 TransactionRequester { 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); static TransactionRequester create() { return ServiceLoader.load(TransactionRequester.class).findFirst().get(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy