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 Type
    Method
    Description
    void
    Called when the request flow was cancelled.
    void
    Called when the request was completed successfully.
    void
    onError(Throwable throwable)
    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

      void onError(Throwable throwable)
      Called when the request flow terminated erroneously.
      Parameters:
      throwable - the Throwable that caused the request to fail.