org.eclipse.jetty.server.session

Class AbstractSessionIdManager

    • Field Detail

      • _random

        protected Random _random
      • _weakRandom

        protected boolean _weakRandom
      • _workerName

        protected String _workerName
      • _reseed

        protected long _reseed
    • Constructor Detail

      • AbstractSessionIdManager

        public AbstractSessionIdManager()
      • AbstractSessionIdManager

        public AbstractSessionIdManager(Random random)
    • Method Detail

      • getReseed

        public long getReseed()
        Returns:
        the reseed probability
      • setReseed

        public void setReseed(long reseed)
        Set the reseed probability.
        Parameters:
        reseed - If non zero then when a random long modulo the reseed value == 1, the SecureRandom will be reseeded.
      • getWorkerName

        public String getWorkerName()
        Get the workname. If set, the workername is dot appended to the session ID and can be used to assist session affinity in a load balancer.
        Specified by:
        getWorkerName in interface SessionIdManager
        Returns:
        String or null
      • setWorkerName

        public void setWorkerName(String workerName)
        Set the workname. If set, the workername is dot appended to the session ID and can be used to assist session affinity in a load balancer.
        Parameters:
        workerName -
      • getRandom

        public Random getRandom()
      • setRandom

        public void setRandom(Random random)
      • initRandom

        public void initRandom()
        Set up a random number generator for the sessionids. By preference, use a SecureRandom but allow to be injected.

Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14