Class LocalReplicator
A IReplicator implementation for use by the side that publishes IRevisions, as well for clients to CheckForUpdate(String) check for updates}. When a client needs to be updated, it is returned a SessionToken through which it can ObtainFile(String, String, String) the files of that revision. As long as a revision is being replicated, this replicator guarantees that it will not be Release().
Replication sessions expire by default after
Inheritance
Assembly: Lucene.Net.Replicator.dll
Syntax
public class LocalReplicator : object, IReplicator, IDisposable
Remarks
@lucene.experimental
Fields
Name | Description |
---|---|
DEFAULT_SESSION_EXPIRATION_THRESHOLD | Threshold for expiring inactive sessions. Defaults to 30 minutes. |
Properties
Name | Description |
---|---|
ExpirationThreshold | Gets or sets the expiration threshold in milliseconds. If a replication session is inactive this long it is automatically expired, and further attempts to operate within this session will throw a SessionExpiredException. |
Methods
Name | Description |
---|---|
CheckForUpdate(String) | |
Dispose() | |
Dispose(Boolean) | |
EnsureOpen() | Ensure that replicator is still open, or throw |
ObtainFile(String, String, String) | |
Publish(IRevision) | |
Release(String) |