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

com.quorum.tessera.recovery.resend.ResendBatchPublisher 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.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