Class SimpleKeyGenerator

java.lang.Object
com.sun.ejb.base.sfsb.util.SimpleKeyGenerator
All Implemented Interfaces:
SFSBUUIDUtil<SimpleKeyGenerator.SimpleSessionKey>, org.glassfish.ha.store.util.KeyTransformer<SimpleKeyGenerator.SimpleSessionKey>
Direct Known Subclasses:
ScrambledKeyGenerator

public class SimpleKeyGenerator extends Object implements SFSBUUIDUtil<SimpleKeyGenerator.SimpleSessionKey>, org.glassfish.ha.store.util.KeyTransformer<SimpleKeyGenerator.SimpleSessionKey>
A utility class that generates stateful session keys using two longs The session id generated by this class is guarenteed to be unique as long as the system clock is never reset to a previous value The hashCode of the SessionKey generated by SimpleKeyGenerator also allows uniform distribution of keys when hashed in a HashMap
Author:
Mahesh Kannan