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

com.quorum.tessera.recovery.resend.ResendBatchRequest 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 java.util.Objects;

public interface ResendBatchRequest {

  String getPublicKey();

  int getBatchSize();

  class Builder {

    private String publicKey;

    private int batchSize;

    public static Builder create() {
      return new Builder() {};
    }

    public Builder withPublicKey(String publicKey) {
      this.publicKey = publicKey;
      return this;
    }

    public Builder withBatchSize(int batchSize) {
      this.batchSize = batchSize;
      return this;
    }

    public ResendBatchRequest build() {

      Objects.requireNonNull(publicKey, "publicKey is required");

      return new ResendBatchRequest() {

        @Override
        public String getPublicKey() {
          return publicKey;
        }

        @Override
        public int getBatchSize() {
          return batchSize;
        }
      };
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy