Class BmEvent


  • public final class BmEvent
    extends Object
    Namespace-bound events contain information about all the modifications (represented by sub-events) performed within a transaction to objects belonging to a particular namespace.
    See Also:
    IBmPlatformEvent, BmSubEvent
    • Constructor Detail

      • BmEvent

        public BmEvent​(long timestamp,
                       Object operationId,
                       Object serviceId,
                       IBmNamespace namespace,
                       BmAssociationEvent associationEvent,
                       IBmLongMap<BmChangeEvent> changeEvents,
                       BmBlobEvent blobEvent)
        Constructs a new instance with the given parameters.
        Parameters:
        timestamp - logical timestamp allowing at least partial ordering of events. Any two events can be ordered in case they were generated in transactions that affected overlapped sets of resources.
        operationId - The ID of the operation specified on the transaction creation. May be null.
        serviceId - The ID of the service specified on the transaction creation. May be null.
        namespace - The namespace this event is bound to. May not be null.
        associationEvent - The sub-event containing information about associated and deassociated objects. May be null.
        changeEvents - A map where keys are identifiers of the modified objects and the values are the sub-events representing the corresponding object changes. May be null.
        blobEvent - The sub-event containing information about blob modifications. May be null.
    • Method Detail

      • getTimestamp

        public long getTimestamp()
        Gets timestamp.
        Returns:
        logical timestamp allowing at least partial ordering of events. Any two events can be ordered in case they were generated in transactions that affected overlapped sets of resources.
      • getOperationId

        public Object getOperationId()
        Gets the ID of the operation specified on the transaction creation.
        Returns:
        the ID of the operation or null.
      • getServiceId

        public Object getServiceId()
        Gets the ID of the service specified on the transaction creation.
        Returns:
        the ID of the service or null.
      • getNamespace

        public IBmNamespace getNamespace()
        Gets the namespace this event is bound to.
        Returns:
        the namespace this event is bound to, never null.
      • getAssociationEvent

        public BmAssociationEvent getAssociationEvent()
        Gets a sub-event representing associations and deassociations.
        Returns:
        the sub-event or null.
      • getChangeEvents

        public IBmLongMap<BmChangeEvent> getChangeEvents()
        Gets sub-events representing changes.
        Returns:
        a map where keys are identifiers of the modified objects and the values are the sub-events representing the corresponding object changes or null.
      • getBlobEvent

        public BmBlobEvent getBlobEvent()
        Returns:
        the blobEvent