Skip to end of metadata
Go to start of metadata
Table of Contents

New CAS documentation site

CAS documentation has moved over to, starting with CAS version 4.x. The wiki will no longer be maintained. For the most recent version of the documentation, please refer to the aforementioned link.

Default TicketRegistry

The DefaultTicketRegistry is included automatically in the CAS server and is enabled by default. There are not that many configuration options for the Registry itself, as it relies on the defaults of the ConcurrentHashMap, which are sufficient for the majority of the people.

However, if one wants to tweak their registry for optimal performance, the DefaultTicketRegistry provides a few options. There is one additional constructor that takes the following arguments:

  • initialCapacity - the initial capacity. The implementation performs internal sizing to accommodate this many elements.
  • loadFactor - the load factor threshold, used to control resizing. Resizing may be performed when the average number of elements per bin exceeds this threshold.
  • concurrencyLevel - the estimated number of concurrently updating threads. The implementation performs internal sizing to try to accommodate this many threads.

It can be configured like

<bean id="ticketRegistry" class="org.jasig.cas.ticket.registry.DefaultTicketRegistry">
    <constructor-arg index="0" value="1000" />
    <constructor-arg index="1" value="1" />
    <constructor-arg index="2" value="16" />
  • No labels