Package io.dapr.client
Interface SubscriptionListener<T>
- Type Parameters:
T- Object type for deserialization.
public interface SubscriptionListener<T>
Callback interface to receive events from a streaming subscription of events.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumCallback status response for acknowledging a message. -
Method Summary
Modifier and TypeMethodDescriptionvoidonError(RuntimeException exception) Processes an exception during streaming subscription.reactor.core.publisher.Mono<SubscriptionListener.Status>onEvent(CloudEvent<T> event) Processes an event from streaming subscription.
-
Method Details
-
onEvent
Processes an event from streaming subscription.- Parameters:
event- Event received.- Returns:
- Acknowledgement status.
-
onError
Processes an exception during streaming subscription.- Parameters:
exception- Exception to be processed.
-