Package com.azure.cosmos.models
Class ChangeFeedMetaData
java.lang.Object
com.azure.cosmos.models.ChangeFeedMetaData
@Beta(value=V4_37_0,
warningText="Preview API - subject to change in non-backwards compatible way")
public final class ChangeFeedMetaData
extends Object
Change Feed response meta data
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the conflict resolution timestamplongGets the current logical sequence numberGets the Change Feed operation typelongGets the previous logical sequence numberbooleanUsed to distinguish explicit deletes (e.g.toString()
-
Constructor Details
-
ChangeFeedMetaData
public ChangeFeedMetaData()
-
-
Method Details
-
getConflictResolutionTimestamp
@Beta(value=V4_37_0, warningText="Preview API - subject to change in non-backwards compatible way") public Instant getConflictResolutionTimestamp()Gets the conflict resolution timestamp- Returns:
- conflict resolution timestamp
-
getLogSequenceNumber
@Beta(value=V4_37_0, warningText="Preview API - subject to change in non-backwards compatible way") public long getLogSequenceNumber()Gets the current logical sequence number- Returns:
- current logical sequence number
-
getOperationType
@Beta(value=V4_37_0, warningText="Preview API - subject to change in non-backwards compatible way") public ChangeFeedOperationType getOperationType()Gets the Change Feed operation type- Returns:
- change Feed operation type
-
getPreviousLogSequenceNumber
@Beta(value=V4_37_0, warningText="Preview API - subject to change in non-backwards compatible way") public long getPreviousLogSequenceNumber()Gets the previous logical sequence number- Returns:
- previous logical sequence number
-
isTimeToLiveExpired
@Beta(value=V4_37_0, warningText="Preview API - subject to change in non-backwards compatible way") public boolean isTimeToLiveExpired()Used to distinguish explicit deletes (e.g. via deleteItem() API) from deletes caused by TTL expiration (a collection may define time-to-live policy for documents).- Returns:
- true if ttlExpiration caused the delete.
-
toString
-