public class SubscriptionDatabaseImpl extends Object implements SubscriptionDatabase
Constructor and Description |
---|
SubscriptionDatabaseImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addTicket(SubscriptionTicket ticket) |
SubscriptionTicket |
findById(UUID id)
Searches the database for a ticket with the specified UUID
|
List<SubscriptionTicket> |
getTickets() |
void |
removeTicketByUUID(UUID id)
Removes a ticket by UUID from the database.
|
public void addTicket(SubscriptionTicket ticket)
addTicket
in interface SubscriptionDatabase
public List<SubscriptionTicket> getTickets()
getTickets
in interface SubscriptionDatabase
public SubscriptionTicket findById(UUID id)
findById
in interface SubscriptionDatabase
id
- the UUID which will be searched forpublic void removeTicketByUUID(UUID id)
removeTicketByUUID
in interface SubscriptionDatabase
id
- the UUID of the ticket to removeUnknownSubscription
- if unknown UUID is suppliedApache CXF