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)
ClaimCheckRepository
add
in interface ClaimCheckRepository
key
- the claim check keypublic boolean contains(String key)
ClaimCheckRepository
contains
in interface ClaimCheckRepository
key
- the claim check keypublic Exchange get(String key)
ClaimCheckRepository
get
in interface ClaimCheckRepository
key
- the claim check keypublic Exchange getAndRemove(String key)
ClaimCheckRepository
getAndRemove
in interface ClaimCheckRepository
key
- the claim check keypublic void push(Exchange exchange)
ClaimCheckRepository
push
in interface ClaimCheckRepository
public Exchange pop()
ClaimCheckRepository
pop
in interface ClaimCheckRepository
public void clear()
ClaimCheckRepository
clear
in interface ClaimCheckRepository
public void start() throws Exception
Service
Apache Camel