Package org.apache.lucene.replicator
Class SessionToken
java.lang.Object
org.apache.lucene.replicator.SessionToken
Token for a replication session, for guaranteeing that source replicated files will be kept safe
until the replication completes.
- See Also:
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructor which deserializes from the givenDataInput
.SessionToken
(String id, Revision revision) Constructor with the given id and revision. -
Method Summary
Modifier and TypeMethodDescriptionvoid
serialize
(DataOutput out) Serialize the token data for communication between server and client.toString()
-
Field Details
-
id
ID of this session. Should be passed when releasing the session, thereby acknowledging theReplicator
that this session is no longer in use.- See Also:
-
version
- See Also:
-
sourceFiles
- See Also:
-
-
Constructor Details
-
SessionToken
Constructor which deserializes from the givenDataInput
.- Throws:
IOException
-
SessionToken
Constructor with the given id and revision.
-
-
Method Details
-
serialize
Serialize the token data for communication between server and client.- Throws:
IOException
-
toString
-