public class RedisTicketRegistry extends AbstractTicketRegistry
cipherExecutor
Constructor and Description |
---|
RedisTicketRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
addTicket(Ticket ticket)
Add a ticket to the registry.
|
long |
deleteAll()
Delete all tickets from the registry.
|
boolean |
deleteSingleTicket(java.lang.String ticketId)
Delete a single ticket instance from the store.
|
Ticket |
getTicket(java.lang.String ticketId)
Retrieve a ticket from the registry.
|
java.util.Collection<Ticket> |
getTickets()
Retrieve all tickets from the registry.
|
java.util.stream.Stream<Ticket> |
getTicketsStream()
Gets tickets stream.
|
Ticket |
updateTicket(Ticket ticket)
Update the received ticket.
|
decodeTicket, decodeTickets, decodeTickets, deleteChildren, deleteTicket, deleteTicket, deleteTickets, deleteTickets, encodeTicket, encodeTicketId, getTicket, isCipherExecutorEnabled, serviceTicketCount, sessionCount
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTickets
public long deleteAll()
TicketRegistry
public boolean deleteSingleTicket(java.lang.String ticketId)
AbstractTicketRegistry
deleteSingleTicket
in class AbstractTicketRegistry
ticketId
- the ticket idpublic void addTicket(Ticket ticket)
TicketRegistry
ticket
- The ticket we wish to add to the cache.public Ticket getTicket(java.lang.String ticketId)
TicketRegistry
ticketId
- the id of the ticket we wish to retrievepublic java.util.Collection<Ticket> getTickets()
TicketRegistry
public java.util.stream.Stream<Ticket> getTicketsStream()
TicketRegistry
public Ticket updateTicket(Ticket ticket)
TicketRegistry
ticket
- the ticket