Interface GenericIntegrationProvider.EventSubscriberFacet<E extends Event>

Enclosing interface:
GenericIntegrationProvider

public static interface GenericIntegrationProvider.EventSubscriberFacet<E extends Event>
Applying this Facet to an integration will allow it to subscribe to events and perform operations based on the event
Since:
1.1.8
  • Method Details

    • getSupportedEventTypes

      List<EventType> getSupportedEventTypes()
      Gets a list of supported event types that this integration can subscribe to
      Returns:
      list of supported event types
    • getEventScopes

      Gets the list of scopes to limit the events received by the subscriber. This is useful for filtering events based on the associations of the event subject. For example, an integration may only want to receive events when the subject has an association to a cloud. When combined with event types, a provider could subscribe to only create network on a cloud events.
      Returns:
      list of event scopes
    • onEvent

      void onEvent(E event, AccountIntegration integration)
      Method triggered when an event that was subscribed to is triggered. This is useful for capturing hooks like perhaps, an action needs to be performed after a network is created or destroyed.
      Parameters:
      event - the event object that was triggered
      See Also: