ChangeFeedMetaData Class

  • java.lang.Object
    • com.azure.cosmos.models.ChangeFeedMetaData

public final class ChangeFeedMetaData

Change Feed response meta data

Constructor Summary

Constructor Description
ChangeFeedMetaData()

Method Summary

Modifier and Type Method and Description
Instant getConflictResolutionTimestamp()

Gets the conflict resolution timestamp

long getLogSequenceNumber()

Gets the current logical sequence number

ChangeFeedOperationType getOperationType()

Gets the Change Feed operation type

long getPreviousLogSequenceNumber()

Gets the previous logical sequence number

boolean isTimeToLiveExpired()

Used to distinguish explicit deletes (e.g.

String toString()

Methods inherited from java.lang.Object

Constructor Details

ChangeFeedMetaData

public ChangeFeedMetaData()

Method Details

getConflictResolutionTimestamp

public Instant getConflictResolutionTimestamp()

Gets the conflict resolution timestamp

Returns:

conflict resolution timestamp

getLogSequenceNumber

public long getLogSequenceNumber()

Gets the current logical sequence number

Returns:

current logical sequence number

getOperationType

public ChangeFeedOperationType getOperationType()

Gets the Change Feed operation type

Returns:

change Feed operation type

getPreviousLogSequenceNumber

public long getPreviousLogSequenceNumber()

Gets the previous logical sequence number

Returns:

previous logical sequence number

isTimeToLiveExpired

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

public String toString()

Overrides:

ChangeFeedMetaData.toString()

Applies to