org.jasig.cas.ticket.registry.support
Class DefaultTicketRegistryCleaner

java.lang.Object
  extended by org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner
All Implemented Interfaces:
RegistryCleaner

public final class DefaultTicketRegistryCleaner
extends java.lang.Object
implements RegistryCleaner

Class that will iterate through the registry and check for tickets that are expired. If a ticket is expired it is removed from the registry. This process is only required so that the size of the TicketRegistry will not grow significantly large. The functionality of CAS is not dependent on a Ticket being removed as soon as it is expired.

Note that this version grabs an Unmodifiable collection and does the expiration checking outside of the synchronization block, thus allowing processing to continue.

The following property is required.

Since:
3.0
Version:
$Revision: 46180 $ $Date: 2009-06-08 23:22:39 -0400 (Mon, 08 Jun 2009) $
Author:
Scott Battaglia

Constructor Summary
DefaultTicketRegistryCleaner()
           
 
Method Summary
 void clean()
          Method to kick-off the cleaning of a registry.
 void setTicketRegistry(TicketRegistry ticketRegistry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTicketRegistryCleaner

public DefaultTicketRegistryCleaner()
Method Detail

clean

public void clean()
Description copied from interface: RegistryCleaner
Method to kick-off the cleaning of a registry.

Specified by:
clean in interface RegistryCleaner

setTicketRegistry

public void setTicketRegistry(TicketRegistry ticketRegistry)
Parameters:
ticketRegistry - The ticketRegistry to set.


Copyright © 2004-2009 Java Architectures Special Interest Group. All Rights Reserved.