|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.cas.ticket.registry.AbstractTicketRegistry
org.jasig.cas.ticket.registry.DefaultTicketRegistry
public final class DefaultTicketRegistry
Implementation of the TicketRegistry that is backed by a ConcurrentHashMap.
| Field Summary |
|---|
| Fields inherited from class org.jasig.cas.ticket.registry.AbstractTicketRegistry |
|---|
log |
| Constructor Summary | |
|---|---|
DefaultTicketRegistry()
|
|
DefaultTicketRegistry(int initialCapacity,
float loadFactor,
int concurrencyLevel)
Creates a new, empty registry with the specified initial capacity, load factor, and concurrency level. |
|
| Method Summary | |
|---|---|
void |
addTicket(Ticket ticket)
Add a ticket to the registry. |
boolean |
deleteTicket(java.lang.String ticketId)
Remove a specific ticket from the registry. |
Ticket |
getTicket(java.lang.String ticketId)
Retrieve a ticket from the registry. |
java.util.Collection<Ticket> |
getTickets()
Retrieve all tickets from the registry. |
| Methods inherited from class org.jasig.cas.ticket.registry.AbstractTicketRegistry |
|---|
getTicket |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTicketRegistry()
public DefaultTicketRegistry(int initialCapacity,
float loadFactor,
int concurrencyLevel)
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.| Method Detail |
|---|
public void addTicket(Ticket ticket)
TicketRegistry
ticket - The ticket we wish to add to the cache.
java.lang.IllegalArgumentException - if the Ticket is null.public Ticket getTicket(java.lang.String ticketId)
TicketRegistry
ticketId - the id of the ticket we wish to retrieve
public boolean deleteTicket(java.lang.String ticketId)
TicketRegistry
ticketId - The id of the ticket to delete.
public java.util.Collection<Ticket> getTickets()
TicketRegistry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||