@ManagedResource(description="JPA based message id repository") public class JpaMessageIdRepository extends org.apache.camel.support.ServiceSupport implements org.apache.camel.spi.ExchangeIdempotentRepository<String>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
QUERY_STRING |
| Constructor and Description |
|---|
JpaMessageIdRepository(javax.persistence.EntityManagerFactory entityManagerFactory,
String processorName) |
JpaMessageIdRepository(javax.persistence.EntityManagerFactory entityManagerFactory,
org.springframework.transaction.support.TransactionTemplate transactionTemplate,
String processorName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(org.apache.camel.Exchange exchange,
String messageId) |
boolean |
add(String messageId) |
boolean |
confirm(org.apache.camel.Exchange exchange,
String messageId) |
boolean |
confirm(String messageId) |
boolean |
contains(org.apache.camel.Exchange exchange,
String messageId) |
boolean |
contains(String messageId) |
protected void |
doStart() |
protected void |
doStop() |
String |
getProcessorName() |
boolean |
isJoinTransaction() |
static JpaMessageIdRepository |
jpaMessageIdRepository(javax.persistence.EntityManagerFactory entityManagerFactory,
String processorName) |
static JpaMessageIdRepository |
jpaMessageIdRepository(String persistenceUnit,
String processorName) |
boolean |
remove(org.apache.camel.Exchange exchange,
String messageId) |
boolean |
remove(String messageId) |
void |
setJoinTransaction(boolean joinTransaction) |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspendprotected static final String QUERY_STRING
public JpaMessageIdRepository(javax.persistence.EntityManagerFactory entityManagerFactory,
String processorName)
public JpaMessageIdRepository(javax.persistence.EntityManagerFactory entityManagerFactory,
org.springframework.transaction.support.TransactionTemplate transactionTemplate,
String processorName)
public static JpaMessageIdRepository jpaMessageIdRepository(String persistenceUnit, String processorName)
public static JpaMessageIdRepository jpaMessageIdRepository(javax.persistence.EntityManagerFactory entityManagerFactory, String processorName)
@ManagedOperation(description="Adds the key to the store") public boolean add(String messageId)
add in interface org.apache.camel.spi.IdempotentRepository<String>public boolean add(org.apache.camel.Exchange exchange,
String messageId)
add in interface org.apache.camel.spi.ExchangeIdempotentRepository<String>@ManagedOperation(description="Does the store contain the given key") public boolean contains(String messageId)
contains in interface org.apache.camel.spi.IdempotentRepository<String>public boolean contains(org.apache.camel.Exchange exchange,
String messageId)
contains in interface org.apache.camel.spi.ExchangeIdempotentRepository<String>@ManagedOperation(description="Remove the key from the store") public boolean remove(String messageId)
remove in interface org.apache.camel.spi.IdempotentRepository<String>public boolean remove(org.apache.camel.Exchange exchange,
String messageId)
remove in interface org.apache.camel.spi.ExchangeIdempotentRepository<String>public boolean confirm(String messageId)
confirm in interface org.apache.camel.spi.IdempotentRepository<String>public boolean confirm(org.apache.camel.Exchange exchange,
String messageId)
confirm in interface org.apache.camel.spi.ExchangeIdempotentRepository<String>@ManagedAttribute(description="The processor name") public String getProcessorName()
@ManagedAttribute(description="Whether to join existing transaction") public boolean isJoinTransaction()
public void setJoinTransaction(boolean joinTransaction)
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.ServiceSupportExceptionApache Camel