org.apache.camel.processor.idempotent.jdbc
Class JdbcMessageIdRepository
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.processor.idempotent.jdbc.JdbcMessageIdRepository
- All Implemented Interfaces:
- org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.IdempotentRepository<String>
@ManagedResource(value="JdbcMessageIdRepository")
public class JdbcMessageIdRepository
- extends org.apache.camel.impl.ServiceSupport
- implements org.apache.camel.spi.IdempotentRepository<String>
- Version:
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, 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
- See Also:
- Constant Field Values
INSERT_STRING
protected static final String INSERT_STRING
- See Also:
- Constant Field Values
DELETE_STRING
protected static final String DELETE_STRING
- See Also:
- Constant Field Values
JdbcMessageIdRepository
public JdbcMessageIdRepository(DataSource dataSource,
String processorName)
JdbcMessageIdRepository
public JdbcMessageIdRepository(DataSource dataSource,
org.springframework.transaction.support.TransactionTemplate transactionTemplate,
String processorName)
jpaMessageIdRepository
public static JdbcMessageIdRepository jpaMessageIdRepository(DataSource dataSource,
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.impl.ServiceSupport
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Specified by:
doStop in class org.apache.camel.impl.ServiceSupport
- Throws:
Exception
Apache CAMEL