Class LocalReplicator

java.lang.Object
org.apache.lucene.replicator.LocalReplicator
All Implemented Interfaces:
Closeable, AutoCloseable, Replicator

public class LocalReplicator extends Object implements Replicator
A Replicator implementation for use by the side that publishes Revisions, as well for clients to check for updates. When a client needs to be updated, it is returned a SessionToken through which it can obtain the files of that revision. As long as a revision is being replicated, this replicator guarantees that it will not be released.

Replication sessions expire by default after DEFAULT_SESSION_EXPIRATION_THRESHOLD, and the threshold can be configured through setExpirationThreshold(long).

WARNING: This API is experimental and might change in incompatible ways in the next release.
  • Field Details

    • DEFAULT_SESSION_EXPIRATION_THRESHOLD

      public static final long DEFAULT_SESSION_EXPIRATION_THRESHOLD
      Threshold for expiring inactive sessions. Defaults to 30 minutes.
      See Also:
  • Constructor Details

    • LocalReplicator

      public LocalReplicator()
  • Method Details