Dashboard > CAS User Manual > Home > TicketRegistry > Default
Log In   View a printable version of the current page.
Default
Added by Scott Battaglia , last edited by Scott Battaglia on Mar 12, 2007  (view change)
Labels: 
(None)


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" />
</bean>

Powered by a free Atlassian Confluence Open Source Project License granted to Java Architectures Special Interest Group. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7.3, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators