Class SubscriptionDatabaseImpl
java.lang.Object
org.apache.cxf.ws.eventing.backend.database.SubscriptionDatabaseImpl
- All Implemented Interfaces:
SubscriptionDatabase
Default implementation of a Subscription Database. Basically it is simply a wrapper
around a List with some convenience methods. The underlying List
is a thread-safe CopyOnWriteArrayList.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTicket(SubscriptionTicket ticket) Searches the database for a ticket with the specified UUIDvoidRemoves a ticket by UUID from the database.
-
Constructor Details
-
SubscriptionDatabaseImpl
public SubscriptionDatabaseImpl()
-
-
Method Details
-
addTicket
- Specified by:
addTicketin interfaceSubscriptionDatabase
-
getTickets
- Specified by:
getTicketsin interfaceSubscriptionDatabase
-
findById
Searches the database for a ticket with the specified UUID- Specified by:
findByIdin interfaceSubscriptionDatabase- Parameters:
id- the UUID which will be searched for- Returns:
- the ticket, or null of no ticket with this UUID exists
-
removeTicketByUUID
Removes a ticket by UUID from the database.- Specified by:
removeTicketByUUIDin interfaceSubscriptionDatabase- Parameters:
id- the UUID of the ticket to remove- Throws:
UnknownSubscription- if unknown UUID is supplied
-