Package com._1c.g5.v8.bm.core.event
Class BmEvent
- java.lang.Object
-
- com._1c.g5.v8.bm.core.event.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 Summary
Constructors Constructor Description BmEvent(long timestamp, Object operationId, Object serviceId, IBmNamespace namespace, BmAssociationEvent associationEvent, IBmLongMap<BmChangeEvent> changeEvents, BmBlobEvent blobEvent)
Constructs a new instance with the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BmAssociationEvent
getAssociationEvent()
Gets a sub-event representing associations and deassociations.BmBlobEvent
getBlobEvent()
IBmLongMap<BmChangeEvent>
getChangeEvents()
Gets sub-events representing changes.IBmNamespace
getNamespace()
Gets the namespace this event is bound to.Object
getOperationId()
Gets the ID of the operation specified on the transaction creation.Object
getServiceId()
Gets the ID of the service specified on the transaction creation.long
getTimestamp()
Gets timestamp.
-
-
-
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 benull
.serviceId
- The ID of the service specified on the transaction creation. May benull
.namespace
- The namespace this event is bound to. May not benull
.associationEvent
- The sub-event containing information about associated and deassociated objects. May benull
.changeEvents
- A map where keys are identifiers of the modified objects and the values are the sub-events representing the corresponding object changes. May benull
.blobEvent
- The sub-event containing information about blob modifications. May benull
.
-
-
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
-
-