public class DefaultClaimCheckRepository extends Object implements ClaimCheckRepository
ClaimCheckRepository implementation that is an in-memory storage.| Constructor and Description |
|---|
DefaultClaimCheckRepository() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(String key,
Exchange exchange)
Adds the exchange to the repository.
|
void |
clear()
Clear the repository.
|
boolean |
contains(String key)
Returns true if this repository contains the specified key.
|
Exchange |
get(String key)
Gets the exchange from the repository.
|
Exchange |
getAndRemove(String key)
Gets and removes the exchange from the repository.
|
Exchange |
pop()
Pops the repository and returns the latest.
|
void |
push(Exchange exchange)
Pushes the exchange on top of the repository.
|
void |
start()
Starts the service
|
void |
stop()
Stops the service
|
public DefaultClaimCheckRepository()
public boolean add(String key, Exchange exchange)
ClaimCheckRepositoryadd in interface ClaimCheckRepositorykey - the claim check keypublic boolean contains(String key)
ClaimCheckRepositorycontains in interface ClaimCheckRepositorykey - the claim check keypublic Exchange get(String key)
ClaimCheckRepositoryget in interface ClaimCheckRepositorykey - the claim check keypublic Exchange getAndRemove(String key)
ClaimCheckRepositorygetAndRemove in interface ClaimCheckRepositorykey - the claim check keypublic void push(Exchange exchange)
ClaimCheckRepositorypush in interface ClaimCheckRepositorypublic Exchange pop()
ClaimCheckRepositorypop in interface ClaimCheckRepositorypublic void clear()
ClaimCheckRepositoryclear in interface ClaimCheckRepositorypublic void start() throws Exception
ServiceApache Camel