Interface PulsarTemplate.TemplateCallback<T,R>
- Type Parameters:
T- the template message payload typeR- 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
- Author:
- Soby Chacko, Chris Bono, Alexander Preuß, Christophe Bornet, Jonas Geiregat
-
Method Summary
Modifier and TypeMethodDescription@Nullable RdoWithTemplate(PulsarTemplate<T> template) Callback method given a template to execute operations on.
-
Method Details
-
doWithTemplate
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
-