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
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 |
Constructor Summary |
JpaMessageIdRepository(org.springframework.orm.jpa.JpaTemplate template,
String processorName)
|
JpaMessageIdRepository(org.springframework.orm.jpa.JpaTemplate template,
org.springframework.transaction.support.TransactionTemplate transactionTemplate,
String processorName)
|
Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, 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(org.springframework.orm.jpa.JpaTemplate template,
String processorName)
JpaMessageIdRepository
public JpaMessageIdRepository(org.springframework.orm.jpa.JpaTemplate template,
org.springframework.transaction.support.TransactionTemplate transactionTemplate,
String processorName)
jpaMessageIdRepository
public static JpaMessageIdRepository jpaMessageIdRepository(String persistenceUnit,
String processorName)
jpaMessageIdRepository
public static JpaMessageIdRepository jpaMessageIdRepository(org.springframework.orm.jpa.JpaTemplate jpaTemplate,
String processorName)
add
public boolean add(String messageId)
- Specified by:
add
in interface org.apache.camel.spi.IdempotentRepository<String>
contains
public boolean contains(String messageId)
- Specified by:
contains
in interface org.apache.camel.spi.IdempotentRepository<String>
remove
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
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