com.quorum.tessera.recovery.resend.ResendBatchPublisher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tessera-recover Show documentation
Show all versions of tessera-recover Show documentation
Tessera is a stateless Java system that is used to enable the encryption, decryption, and distribution of private transactions for Quorum.
package com.quorum.tessera.recovery.resend;
import com.quorum.tessera.enclave.EncodedPayload;
import com.quorum.tessera.encryption.KeyNotFoundException;
import com.quorum.tessera.serviceloader.ServiceLoaderUtil;
import java.util.List;
import java.util.ServiceLoader;
/** Publishes messages from one node to another */
public interface ResendBatchPublisher {
/**
* Formats, encodes and publishes encrypted messages using the target public key as the
* identifier, instead of the URL
*
* @param payload
* @param targetUrl
* @throws KeyNotFoundException if the target public key is not known
*/
void publishBatch(List payload, String targetUrl);
static ResendBatchPublisher create() {
return ServiceLoaderUtil.loadSingle(ServiceLoader.load(ResendBatchPublisher.class));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy