Interface ChangeRequestHttpSyncer.Listener<T>

Enclosing class:
ChangeRequestHttpSyncer<T>

public static interface ChangeRequestHttpSyncer.Listener<T>
Concurrency guarantees: all calls to fullSync(java.util.List<T>) and deltaSync(java.util.List<T>) (that is done within the ChangeRequestHttpSyncer.executor) are linearizable.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deltaSync(List<T> changes)
     
    void
    fullSync(List<T> changes)
    This method is called either if on the previous request the server had asked to reset the counter or it was the first request to the server.
  • Method Details

    • fullSync

      void fullSync(List<T> changes)
      This method is called either if on the previous request the server had asked to reset the counter or it was the first request to the server.
    • deltaSync

      void deltaSync(List<T> changes)