Interface BitbucketWebhookProcessorListener

All Superinterfaces:
ExtensionPoint
All Known Implementing Classes:
WebhookProcessorListenersHandler

public interface BitbucketWebhookProcessorListener extends ExtensionPoint
Listener for BitbucketWebhookProcessor to receive notification about each steps done by the matching processor for an incoming webhook.
  • Method Details

    • onStart

      void onStart(@NonNull Class<? extends BitbucketWebhookProcessor> processor)
      Notify when the processor has been matches.
      Parameters:
      processor - class
    • onProcess

      void onProcess(@NonNull String eventType, @NonNull String payload, @NonNull BitbucketEndpoint endpoint)
      Notify after the processor has processed the incoming webhook payload.
      Parameters:
      eventType - of incoming request
      payload - content that comes with incoming request
      endpoint - that match the incoming request
    • onFailure

      void onFailure(@NonNull BitbucketWebhookProcessorException failure)
      Notify of failure while processing the incoming webhook.
      Parameters:
      failure - exception raised by webhook consumer or by processor.