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

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

package com.quorum.tessera.p2p.resend;

import java.util.Optional;

public class ResendResponse {

  private byte[] payload;

  public ResendResponse() {}

  public ResendResponse(byte[] payload) {
    this.payload = payload;
  }

  /**
   * @return Optional encoded payload
   */
  public Optional getPayload() {
    return Optional.ofNullable(payload);
  }

  public void setPayload(byte[] payload) {
    this.payload = payload;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy