org.apache.camel.component.infinispan.processor.idempotent
Class InfinispanIdempotentRepository
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.component.infinispan.processor.idempotent.InfinispanIdempotentRepository
- All Implemented Interfaces:
- org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.IdempotentRepository<Object>, org.apache.camel.StatefulService, org.apache.camel.SuspendableService
@ManagedResource(description="Infinispan based message id repository")
public class InfinispanIdempotentRepository
- extends org.apache.camel.support.ServiceSupport
- implements org.apache.camel.spi.IdempotentRepository<Object>
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, 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 |
InfinispanIdempotentRepository
public InfinispanIdempotentRepository(org.infinispan.commons.api.BasicCacheContainer cacheContainer,
String cacheName)
InfinispanIdempotentRepository
public InfinispanIdempotentRepository(String cacheName)
InfinispanIdempotentRepository
public InfinispanIdempotentRepository()
infinispanIdempotentRepository
public static InfinispanIdempotentRepository infinispanIdempotentRepository(org.infinispan.commons.api.BasicCacheContainer cacheContainer,
String processorName)
infinispanIdempotentRepository
public static InfinispanIdempotentRepository infinispanIdempotentRepository(String processorName)
infinispanIdempotentRepository
public static InfinispanIdempotentRepository infinispanIdempotentRepository()
add
@ManagedOperation(description="Adds the key to the store")
public boolean add(Object key)
- Specified by:
add
in interface org.apache.camel.spi.IdempotentRepository<Object>
contains
@ManagedOperation(description="Does the store contain the given key")
public boolean contains(Object key)
- Specified by:
contains
in interface org.apache.camel.spi.IdempotentRepository<Object>
remove
@ManagedOperation(description="Remove the key from the store")
public boolean remove(Object key)
- Specified by:
remove
in interface org.apache.camel.spi.IdempotentRepository<Object>
getCacheName
@ManagedAttribute(description="The processor name")
public String getCacheName()
confirm
public boolean confirm(Object key)
- Specified by:
confirm
in interface org.apache.camel.spi.IdempotentRepository<Object>
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
doShutdown
protected void doShutdown()
throws Exception
- Overrides:
doShutdown
in class org.apache.camel.support.ServiceSupport
- Throws:
Exception
Apache Camel