Interface ModelChangedEventContext

All Superinterfaces:
EventContext

public interface ModelChangedEventContext extends EventContext
  • Method Details

    • create

      static ModelChangedEventContext create()
      Creates an EventContext already overlaid with this interface. The event is set to be ExtensibilityService.EVENT_MODEL_CHANGED
      Returns:
      the ModelChangedEventContext
    • setTimestamp

      void setTimestamp(Instant timestamp)
      Sets the optional point in time the model changed or is known to have changed. The timestamp is used to only refresh the cached model in case it was cached previous to the given timestamp. If the timestamp is null, the model is always refreshed.
      Parameters:
      timestamp - the point in time the model changed or is known to have changed
    • getTimestamp

      Instant getTimestamp()
      Returns the optional point in time the model changed or is known to have changed. The timestamp is used to only refresh the cached model in case it was cached previous to the given timestamp. If the timestamp is null, the model is always refreshed.
      Returns:
      the point in time the model changed or is known to have changed