Package org.apache.lucene.replicator
Class SessionToken
- java.lang.Object
-
- org.apache.lucene.replicator.SessionToken
-
@Deprecated public final class SessionToken extends Object
Deprecated.use org.apache.lucene.replicator.nrt insteadToken for a replication session, for guaranteeing that source replicated files will be kept safe until the replication completes.- See Also:
Replicator.checkForUpdate(String)
,Replicator.release(String)
,LocalReplicator.DEFAULT_SESSION_EXPIRATION_THRESHOLD
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Field Summary
Fields Modifier and Type Field Description String
id
Deprecated.ID of this session.Map<String,List<RevisionFile>>
sourceFiles
Deprecated.String
version
Deprecated.
-
Constructor Summary
Constructors Constructor Description SessionToken(DataInput in)
Deprecated.Constructor which deserializes from the givenDataInput
.SessionToken(String id, Revision revision)
Deprecated.Constructor with the given id and revision.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
serialize(DataOutput out)
Deprecated.Serialize the token data for communication between server and client.String
toString()
Deprecated.
-
-
-
Field Detail
-
id
public final String id
Deprecated.ID of this session. Should be passed when releasing the session, thereby acknowledging theReplicator
that this session is no longer in use.- See Also:
Replicator.release(String)
-
version
public final String version
Deprecated.- See Also:
Revision.getVersion()
-
sourceFiles
public final Map<String,List<RevisionFile>> sourceFiles
Deprecated.- See Also:
Revision.getSourceFiles()
-
-
Constructor Detail
-
SessionToken
public SessionToken(DataInput in) throws IOException
Deprecated.Constructor which deserializes from the givenDataInput
.- Throws:
IOException
-
-
Method Detail
-
serialize
public void serialize(DataOutput out) throws IOException
Deprecated.Serialize the token data for communication between server and client.- Throws:
IOException
-
-