Interface EventCollection

  • All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    BaseEventCollection

    public interface EventCollection
    extends Serializable
    EventCollection is responsible for efficient mechanism to keep events provided to it. It's usually a short lived object and thus should not use any persistent storage. It's up to concrete implementation how to react to different type of events:
    • add
    • update
    • remove
    For instance one implementation will simply collect all type of events (reducing by duplicates) while another will filter out to keep track of only active items
    • Method Detail

      • add

        void add​(InstanceView<?> event)
        Invoked when new instance is created
        Parameters:
        event - view of the instance in compact way
      • update

        void update​(InstanceView<?> item)
        Invoked when instance is updated
        Parameters:
        event - view of the instance in compact way
      • remove

        void remove​(InstanceView<?> item)
        Invoked when instance is removed
        Parameters:
        event - view of the instance in compact way