Interface PulsarTemplate.TemplateCallback<T,R>

Type Parameters:
T - the template message payload type
R - the return type
Enclosing class:
PulsarTemplate<T>

public static interface PulsarTemplate.TemplateCallback<T,R>
A callback for executing arbitrary operations on a PulsarTemplate.
Since:
1.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Callback method given a template to execute operations on.
  • Method Details

    • doWithTemplate

      @Nullable R doWithTemplate(PulsarTemplate<T> template)
      Callback method given a template to execute operations on.
      Parameters:
      template - the template
      Returns:
      the result of the operations or null if no result needed