Show / Hide Table of Contents

    Class SessionToken

    Token for a replication session, for guaranteeing that source replicated files will be kept safe until the replication completes.

    Inheritance
    System.Object
    SessionToken
    Namespace: Lucene.Net.Replicator
    Assembly: Lucene.Net.Replicator.dll
    Syntax
    public sealed class SessionToken : object
    Remarks
    This is a Lucene.NET EXPERIMENTAL API, use at your own risk

    Constructors

    | Improve this Doc View Source

    SessionToken(IDataInput)

    Constructor which deserializes from the given .

    Declaration
    public SessionToken(IDataInput reader)
    Parameters
    Type Name Description
    IDataInput reader
    | Improve this Doc View Source

    SessionToken(String, IRevision)

    Constructor with the given id and revision.

    Declaration
    public SessionToken(string id, IRevision revision)
    Parameters
    Type Name Description
    System.String id
    IRevision revision

    Properties

    | Improve this Doc View Source

    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
    System.String
    See Also
    Release(System.String)
    | Improve this Doc View Source

    SourceFiles

    SourceFiles
    Declaration
    public IDictionary<string, IList<RevisionFile>> SourceFiles { get; }
    Property Value
    Type Description
    IDictionary<System.String, IList<RevisionFile>>
    | Improve this Doc View Source

    Version

    Version
    Declaration
    public string Version { get; }
    Property Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    Serialize(DataOutputStream)

    Serialize the token data for communication between server and client.

    Declaration
    public void Serialize(DataOutputStream writer)
    Parameters
    Type Name Description
    DataOutputStream writer
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    See Also

    CheckForUpdate(System.String)
    Release(System.String)
    DEFAULT_SESSION_EXPIRATION_THRESHOLD
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)