Package com.verisign.epp.pool
Class ClientTransIdGenerator
java.lang.Object
com.verisign.epp.pool.ClientTransIdGenerator
- All Implemented Interfaces:
EPPClientTransIdGenerator
Client transaction identifier generator that is
used to generate a client transaction identifier
when creating or terminating sessions in the session pool. The format of the
client transaction identifier is <prefix>'-'<epoch time>'-'<random>, where
the default <prefix> is "SAMPLE".
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ClientTransIdGenerator(String aPrefix) Constructor that takes the client transaction identifier prefix to use. -
Method Summary
Modifier and TypeMethodDescriptionGenerates a sample client transaction identifier with the format <prefix>'-'<epoch time>'-'<random> that is clipped to the maximum 64 characters if needed.
-
Constructor Details
-
ClientTransIdGenerator
public ClientTransIdGenerator()Default constructor. -
ClientTransIdGenerator
Constructor that takes the client transaction identifier prefix to use. The sample format will be <prefix>'-'<epoch time>'-'<random>.- Parameters:
aPrefix- Prefix to use for the client transaction identifier
-
-
Method Details
-
genClientTransId
Generates a sample client transaction identifier with the format <prefix>'-'<epoch time>'-'<random> that is clipped to the maximum 64 characters if needed.- Specified by:
genClientTransIdin interfaceEPPClientTransIdGenerator- Returns:
- Generated client transaction identifier
-