Interface TrafficResiliencyObserver.TicketObserver
- Enclosing interface:
- TrafficResiliencyObserver
public static interface TrafficResiliencyObserver.TicketObserver
Transactional observer for the requests that were let-through.
Allows the caller to track the result of the ticket.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onCancel()
Called when the request flow was cancelled.void
Called when the request was completed successfully.void
Called when the request flow terminated erroneously.
-
Method Details
-
onComplete
void onComplete()Called when the request was completed successfully. -
onCancel
void onCancel()Called when the request flow was cancelled. -
onError
Called when the request flow terminated erroneously.- Parameters:
throwable
- theThrowable
that caused the request to fail.
-