Package org.springframework.pulsar.core
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
-
Method Summary
Modifier and TypeMethodDescriptiondoWithTemplate
(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
-