|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TicketRegistry
Interface for a registry that stores tickets. The underlying registry can be backed by anything from a normal HashMap to JGroups for having distributed registries. It is up to specific implementations to determine their clean up strategy. Strategies can include a manual clean up by a RegistryCleaner or a more sophisticated strategy such as LRU.
This is a published and supported CAS Server 3 API.
| 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. |
Ticket |
getTicket(java.lang.String ticketId,
java.lang.Class<? extends Ticket> clazz)
Retrieve a ticket from the registry. |
java.util.Collection<Ticket> |
getTickets()
Retrieve all tickets from the registry. |
| Method Detail |
|---|
void addTicket(Ticket ticket)
ticket - The ticket we wish to add to the cache.
Ticket getTicket(java.lang.String ticketId,
java.lang.Class<? extends Ticket> clazz)
ticketId - the id of the ticket we wish to retrieve.clazz - The expected class of the ticket we wish to retrieve.
InvalidTicketClassException - if the ticket does not match the
class provided.Ticket getTicket(java.lang.String ticketId)
ticketId - the id of the ticket we wish to retrieve
boolean deleteTicket(java.lang.String ticketId)
ticketId - The id of the ticket to delete.
java.util.Collection<Ticket> getTickets()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||