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

com.apollographql.subscription.message.CallbackMessageNext Maven / Gradle / Ivy

The newest version!
package com.apollographql.subscription.message;

import java.util.Map;

/**
 * next message contains emitted GraphQL subscription data.
 *
 * @param id unique subscription ID
 * @param verifier value provided by Router that is used to validate requests
 * @param payload emitted GraphQL subscription data
 */
public record CallbackMessageNext(String id, String verifier, Map payload)
    implements SubscritionCallbackMessage {

  @Override
  public CallbackMessageAction getAction() {
    return CallbackMessageAction.NEXT;
  }

  @Override
  public String getId() {
    return id;
  }

  @Override
  public String getVerifier() {
    return verifier;
  }

  public Map getPayload() {
    return payload;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy