Class LocalReplicator
Inheritance
System.Object
LocalReplicator
Assembly: Lucene.Net.Replicator.dll
Syntax
public class LocalReplicator : object, IReplicator, IDisposable
Fields
|
Improve this Doc
View Source
DEFAULT_SESSION_EXPIRATION_THRESHOLD
Threshold for expiring inactive sessions. Defaults to 30 minutes.
Declaration
public const long DEFAULT_SESSION_EXPIRATION_THRESHOLD = null
Field Value
Type |
Description |
System.Int64 |
|
Properties
|
Improve this Doc
View Source
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.
Declaration
public virtual long ExpirationThreshold { get; set; }
Property Value
Type |
Description |
System.Int64 |
|
Methods
|
Improve this Doc
View Source
CheckForUpdate(String)
Declaration
public virtual SessionToken CheckForUpdate(string currentVersion)
Parameters
Type |
Name |
Description |
System.String |
currentVersion |
|
Returns
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
|
Improve this Doc
View Source
EnsureOpen()
Ensure that replicator is still open, or throw otherwise.
Declaration
protected void EnsureOpen()
|
Improve this Doc
View Source
ObtainFile(String, String, String)
Declaration
public virtual Stream ObtainFile(string sessionId, string source, string fileName)
Parameters
Type |
Name |
Description |
System.String |
sessionId |
|
System.String |
source |
|
System.String |
fileName |
|
Returns
|
Improve this Doc
View Source
Publish(IRevision)
Declaration
public virtual void Publish(IRevision revision)
Parameters
|
Improve this Doc
View Source
Release(String)
Declaration
public virtual void Release(string sessionId)
Parameters
Type |
Name |
Description |
System.String |
sessionId |
|
Implements
IDisposable