Package com.github.ambry.cloud.azure
Interface AzureReplicationFeed
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
- All Known Implementing Classes:
CosmosChangeFeedBasedReplicationFeed
,CosmosUpdateTimeBasedReplicationFeed
public interface AzureReplicationFeed extends java.io.Closeable
The replication feed that provides next list of blobs to replicate from Azure, and a bookmark in form ofFindToken
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AzureReplicationFeed.FeedType
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FindResult
getNextEntriesAndUpdatedToken(com.github.ambry.replication.FindToken curfindToken, long maxTotalSizeOfEntries, java.lang.String partitionPath)
Returns an ordered sequenced list of blobs within the specified partition and updatedFindToken
, such that total size of all blobs in the list are less or equal tomaxTotalSizeOfEntries
.
-
-
-
Method Detail
-
getNextEntriesAndUpdatedToken
FindResult getNextEntriesAndUpdatedToken(com.github.ambry.replication.FindToken curfindToken, long maxTotalSizeOfEntries, java.lang.String partitionPath) throws com.microsoft.azure.cosmosdb.DocumentClientException
Returns an ordered sequenced list of blobs within the specified partition and updatedFindToken
, such that total size of all blobs in the list are less or equal tomaxTotalSizeOfEntries
. This method should return at least one blob, if exists, aftercurfindToken
, irrespective ofmaxTotalSizeOfEntries
requirement.- Parameters:
curfindToken
- currentFindToken
object that acts as a bookmark to return blobs after.maxTotalSizeOfEntries
- max total size of all theCloudBlobMetadata
objects returned.partitionPath
- partition of the blobs.- Returns:
FindResult
instance that contains updatedFindToken
object which can act as a bookmark for subsequent requests, andList
ofCloudBlobMetadata
entries.- Throws:
com.microsoft.azure.cosmosdb.DocumentClientException
-
-