Class LocalReplicator
Inheritance
System.Object
LocalReplicator
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Lucene.Net.Replicator.dll
Syntax
public class LocalReplicator : 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 = 1800000L
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 System.ObjectDisposedException otherwise.
Declaration
protected void EnsureOpen()
Exceptions
Type |
Condition |
System.ObjectDisposedException |
This replicator has already been disposed.
|
|
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
Type |
Description |
System.IO.Stream |
|
|
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 |
|
Exceptions
Type |
Condition |
System.InvalidOperationException |
|
Implements
System.IDisposable