All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.kinesis.clientlibrary.lib.worker.IPeriodicShardSyncManager Maven / Gradle / Ivy

Go to download

The Amazon Kinesis Client Library for Java enables Java developers to easily consume and process data from Amazon Kinesis.

The newest version!
package com.amazonaws.services.kinesis.clientlibrary.lib.worker;

import com.google.common.annotations.VisibleForTesting;
import lombok.Value;
import lombok.experimental.Accessors;

public interface IPeriodicShardSyncManager {

    TaskResult start();

    /**
     * Runs ShardSync once, without scheduling further periodic ShardSyncs.
     * @return TaskResult from shard sync
     */
    TaskResult syncShardsOnce();

    void stop();

    @Value
    @Accessors(fluent = true)
    @VisibleForTesting
    class ShardSyncResponse {
        private final boolean shouldDoShardSync;
        private final boolean isHoleDetected;
        private final String reasonForDecision;
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy