|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner
public final class DefaultTicketRegistryCleaner
The default ticket registry cleaner scans the entire CAS ticket registry for expired tickets and removes them. This process is only required so that the size of the ticket registry will not grow beyond a reasonable size. The functionality of CAS is not dependent on a ticket being removed as soon as it is expired.
NEW in 3.3.6:
Locking strategies may be used to support high availability environments.
In a clustered CAS environment with several CAS nodes executing ticket
cleanup, it is desirable to execute cleanup from only one CAS node at a time.
This dramatically reduces the potential for deadlocks in
JpaTicketRegistry, for example.
By default this implementation uses NoOpLockingStrategy to preserve
the same semantics as previous versions, but JpaLockingStrategy
should be used with JpaTicketRegistry
in a clustered CAS environment.
The following property is required.
JpaLockingStrategy,
NoOpLockingStrategy| Constructor Summary | |
|---|---|
DefaultTicketRegistryCleaner()
|
|
| Method Summary | |
|---|---|
void |
clean()
Method to kick-off the cleaning of a registry. |
void |
setLock(LockingStrategy strategy)
|
void |
setLogUserOutOfServices(boolean logUserOutOfServices)
Whether to log users out of services when we remove an expired ticket. |
void |
setTicketRegistry(TicketRegistry ticketRegistry)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTicketRegistryCleaner()
| Method Detail |
|---|
public void clean()
RegistryCleaner
clean in interface RegistryCleanerRegistryCleaner.clean()public void setTicketRegistry(TicketRegistry ticketRegistry)
ticketRegistry - The ticketRegistry to set.public void setLock(LockingStrategy strategy)
strategy - Ticket cleanup locking strategy. An exclusive locking
strategy is preferable if not required for some ticket backing stores,
such as JPA, in a clustered CAS environment. Use JdbcLockingStrategy
for JpaTicketRegistry in a clustered
CAS environment.public void setLogUserOutOfServices(boolean logUserOutOfServices)
logUserOutOfServices - whether to log the user out of services or not.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||