Class SessionToken
Token for a replication session, for guaranteeing that source replicated files will be kept safe until the replication completes.
Inherited Members
Namespace: Lucene.Net.Replicator
Assembly: Lucene.Net.Replicator.dll
Syntax
public sealed class SessionToken
Remarks
Note
This API is experimental and might change in incompatible ways in the next release.
Constructors
SessionToken(IDataInput)
Constructor which deserializes from the given J2N.IO.IDataInput.
Declaration
public SessionToken(IDataInput reader)
Parameters
Type | Name | Description |
---|---|---|
IDataInput | reader |
Remarks
Note
This API is experimental and might change in incompatible ways in the next release.
Exceptions
Type | Condition |
---|---|
IOException |
See Also
SessionToken(string, IRevision)
Constructor with the given id
and revision
.
Declaration
public SessionToken(string id, IRevision revision)
Parameters
Type | Name | Description |
---|---|---|
string | id | |
IRevision | revision |
Remarks
Note
This API is experimental and might change in incompatible ways in the next release.
Exceptions
Type | Condition |
---|---|
IOException |
See Also
Properties
Id
Id of this session. Should be passed when releasing the session, thereby acknowledging the IReplicator that this session is no longer in use.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
string |
Remarks
Note
This API is experimental and might change in incompatible ways in the next release.
See Also
SourceFiles
Declaration
public IDictionary<string, IList<RevisionFile>> SourceFiles { get; }
Property Value
Type | Description |
---|---|
IDictionary<string, IList<RevisionFile>> |
Remarks
Note
This API is experimental and might change in incompatible ways in the next release.
See Also
Version
Declaration
public string Version { get; }
Property Value
Type | Description |
---|---|
string |
Remarks
Note
This API is experimental and might change in incompatible ways in the next release.
See Also
Methods
Serialize(DataOutputStream)
Serialize the token data for communication between server and client.
Declaration
public void Serialize(DataOutputStream writer)
Parameters
Type | Name | Description |
---|---|---|
DataOutputStream | writer |
Remarks
Note
This API is experimental and might change in incompatible ways in the next release.
Exceptions
Type | Condition |
---|---|
IOException |
See Also
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |
Overrides
Remarks
Note
This API is experimental and might change in incompatible ways in the next release.