Package nosql.batch.update.aerospike.wal
Class AerospikeWriteAheadLogManager<LOCKS extends AerospikeBatchLocks<EV>,UPDATES,EV>
java.lang.Object
nosql.batch.update.aerospike.wal.AerospikeWriteAheadLogManager<LOCKS,UPDATES,EV>
- All Implemented Interfaces:
WriteAheadLogManager<LOCKS,UPDATES, com.aerospike.client.Value>
public class AerospikeWriteAheadLogManager<LOCKS extends AerospikeBatchLocks<EV>,UPDATES,EV>
extends Object
implements WriteAheadLogManager<LOCKS,UPDATES,com.aerospike.client.Value>
-
Constructor Summary
ConstructorsConstructorDescriptionAerospikeWriteAheadLogManager(com.aerospike.client.IAerospikeClient client, String walNamespace, String walSetName, AerospikeBatchUpdateSerde<LOCKS, UPDATES, EV> batchSerializer, Clock clock) -
Method Summary
Modifier and TypeMethodDescriptionbooleandeleteBatch(com.aerospike.client.Value batchId) static com.aerospike.client.Valuecom.aerospike.client.IAerospikeClientgetStaleBatchesForRange(WalTimeRange timeRange) getTimeRanges(Duration staleThreshold, int batchSize) static List<WalTimeRange>getTimeRangesForTimestamps(List<Long> timestamps, int batchSize) static com.aerospike.client.query.StatementstaleBatchesStatement(String walNamespace, String walSetName, long begin, long end) static com.aerospike.client.query.StatementstaleBatchesStatement(Duration staleThreshold, String walNamespace, String walSetName, Clock clock) com.aerospike.client.ValuewriteBatch(BatchUpdate<LOCKS, UPDATES> batch)
-
Constructor Details
-
AerospikeWriteAheadLogManager
-
-
Method Details
-
writeBatch
- Specified by:
writeBatchin interfaceWriteAheadLogManager<LOCKS extends AerospikeBatchLocks<EV>,UPDATES, EV>
-
generateBatchId
public static com.aerospike.client.Value generateBatchId() -
deleteBatch
public boolean deleteBatch(com.aerospike.client.Value batchId) - Specified by:
deleteBatchin interfaceWriteAheadLogManager<LOCKS extends AerospikeBatchLocks<EV>,UPDATES, EV>
-
getTimeRanges
- Specified by:
getTimeRangesin interfaceWriteAheadLogManager<LOCKS extends AerospikeBatchLocks<EV>,UPDATES, EV>
-
getStaleBatchesForRange
public List<WalRecord<LOCKS,UPDATES, getStaleBatchesForRangecom.aerospike.client.Value>> (WalTimeRange timeRange) - Specified by:
getStaleBatchesForRangein interfaceWriteAheadLogManager<LOCKS extends AerospikeBatchLocks<EV>,UPDATES, EV>
-
staleBatchesStatement
-
staleBatchesStatement
-
getTimeRangesForTimestamps
-
getWalNamespace
-
getWalSetName
-
getClient
public com.aerospike.client.IAerospikeClient getClient()
-