org.apache.camel.processor.idempotent.jpa
Class JpaMessageIdRepository
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.processor.idempotent.jpa.JpaMessageIdRepository
- All Implemented Interfaces:
- org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.IdempotentRepository<String>, org.apache.camel.StatefulService, org.apache.camel.SuspendableService
@ManagedResource(description="JPA based message id repository")
public class JpaMessageIdRepository
- extends org.apache.camel.support.ServiceSupport
- implements org.apache.camel.spi.IdempotentRepository<String>
- Version:
| Fields inherited from class org.apache.camel.support.ServiceSupport |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
| Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.camel.Service |
start, stop |
QUERY_STRING
protected static final String QUERY_STRING
JpaMessageIdRepository
public JpaMessageIdRepository(JpaTemplate template,
String processorName)
JpaMessageIdRepository
public JpaMessageIdRepository(JpaTemplate template,
TransactionTemplate transactionTemplate,
String processorName)
jpaMessageIdRepository
public static JpaMessageIdRepository jpaMessageIdRepository(String persistenceUnit,
String processorName)
jpaMessageIdRepository
public static JpaMessageIdRepository jpaMessageIdRepository(JpaTemplate jpaTemplate,
String processorName)
add
@ManagedOperation(description="Adds the key to the store")
public boolean add(String messageId)
- Specified by:
add in interface org.apache.camel.spi.IdempotentRepository<String>
contains
@ManagedOperation(description="Does the store contain the given key")
public boolean contains(String messageId)
- Specified by:
contains in interface org.apache.camel.spi.IdempotentRepository<String>
remove
@ManagedOperation(description="Remove the key from the store")
public boolean remove(String messageId)
- Specified by:
remove in interface org.apache.camel.spi.IdempotentRepository<String>
confirm
public boolean confirm(String s)
- Specified by:
confirm in interface org.apache.camel.spi.IdempotentRepository<String>
getProcessorName
@ManagedAttribute(description="The processor name")
public String getProcessorName()
doStart
protected void doStart()
throws Exception
- Specified by:
doStart in class org.apache.camel.support.ServiceSupport
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Specified by:
doStop in class org.apache.camel.support.ServiceSupport
- Throws:
Exception
Apache Camel