@ManagedResource(description="JPA based message id repository") public class JpaMessageIdRepository extends org.apache.camel.support.ServiceSupport implements org.apache.camel.spi.IdempotentRepository<String>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
QUERY_STRING |
| Constructor and Description |
|---|
JpaMessageIdRepository(org.springframework.orm.jpa.JpaTemplate template,
String processorName) |
JpaMessageIdRepository(org.springframework.orm.jpa.JpaTemplate template,
org.springframework.transaction.support.TransactionTemplate transactionTemplate,
String processorName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(String messageId) |
boolean |
confirm(String s) |
boolean |
contains(String messageId) |
protected void |
doStart() |
protected void |
doStop() |
String |
getProcessorName() |
static JpaMessageIdRepository |
jpaMessageIdRepository(org.springframework.orm.jpa.JpaTemplate jpaTemplate,
String processorName) |
static JpaMessageIdRepository |
jpaMessageIdRepository(String persistenceUnit,
String processorName) |
boolean |
remove(String messageId) |
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(org.springframework.orm.jpa.JpaTemplate template,
String processorName)
public JpaMessageIdRepository(org.springframework.orm.jpa.JpaTemplate template,
org.springframework.transaction.support.TransactionTemplate transactionTemplate,
String processorName)
public static JpaMessageIdRepository jpaMessageIdRepository(String persistenceUnit, String processorName)
public static JpaMessageIdRepository jpaMessageIdRepository(org.springframework.orm.jpa.JpaTemplate jpaTemplate, String processorName)
@ManagedOperation(description="Adds the key to the store") public boolean add(String messageId)
add in interface org.apache.camel.spi.IdempotentRepository<String>@ManagedOperation(description="Does the store contain the given key") public boolean contains(String messageId)
contains in interface org.apache.camel.spi.IdempotentRepository<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 confirm(String s)
confirm in interface org.apache.camel.spi.IdempotentRepository<String>@ManagedAttribute(description="The processor name") public String getProcessorName()
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.ServiceSupportExceptionApache Camel