Interface UnsubscribeEventContext

All Superinterfaces:
EventContext

public interface UnsubscribeEventContext extends EventContext
  • Method Details

    • create

      static UnsubscribeEventContext create()
      Creates an EventContext already overlayed with this interface. The event is set to be DeploymentService.EVENT_UNSUBSCRIBE
      Returns:
      the UnsubscribeEventContext
    • getService

      DeploymentService getService()
      Description copied from interface: EventContext
      Returns the Service (Consumption API) of the service, targeted by the EventContext. This is the service, on which the Service.emit(EventContext) method (or specialized Consumption API) was called.
      Specified by:
      getService in interface EventContext
      Returns:
      the Service (Consumption API) of the service, targeted by the EventContext.
    • getTenant

      String getTenant()
      Returns:
      the tenant ID
    • setTenant

      void setTenant(String tenant)
      Sets the tenant ID
      Parameters:
      tenant - the tenant ID
    • getOptions

      Map<String,Object> getOptions()
      To get named and type safe access to this options map, it's possible to cast it to a specific implementation. For example, to access the SaaS registry payload it can be converted to SaasRegistryUnsubscriptionOptions:
       SaasRegistryUnsubscriptionOptions.create(context.getOptions());
       
      Returns:
      the optional additional options
    • setOptions

      void setOptions(Map<String,Object> options)
      Sets the optional additional options.
      Parameters:
      options - the optional additional options