@UriEndpoint(scheme="ignite:cache",
title="Ignite Cache",
syntax="ignite:cache:[cacheName]",
label="nosql,cache,compute",
consumerClass=IgniteCacheContinuousQueryConsumer.class)
public class IgniteCacheEndpoint
extends AbstractIgniteEndpoint
component| Constructor and Description |
|---|
IgniteCacheEndpoint(String endpointUri,
URI remainingUri,
Map<String,Object> parameters,
IgniteComponent igniteComponent) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
String |
getCacheName()
Gets the cache name.
|
org.apache.ignite.cache.CachePeekMode |
getCachePeekMode()
Gets the
CachePeekMode, only needed for operations that require it (IgniteCacheOperation.SIZE). |
IgniteCacheOperation |
getOperation()
Gets the cache operation to invoke.
|
int |
getPageSize()
Gets the page size.
|
org.apache.ignite.cache.query.Query<javax.cache.Cache.Entry<Object,Object>> |
getQuery()
Gets the query to execute, only needed for operations that require it,
and for the Continuous Query Consumer.
|
org.apache.ignite.cache.CacheEntryEventSerializableFilter<Object,Object> |
getRemoteFilter()
Gets the remote filter, only used by the Continuous Query Consumer.
|
long |
getTimeInterval()
Gets the time interval for the Continuous Query Consumer.
|
boolean |
isAutoUnsubscribe()
Gets whether auto unsubscribe is enabled in the Continuous Query Consumer.
|
boolean |
isFailIfInexistentCache()
Gets whether to fail the initialization if the cache doesn't exist.
|
boolean |
isFireExistingQueryResults()
Gets whether to process existing results that match the query.
|
boolean |
isOneExchangePerUpdate()
Gets whether to pack each update in an individual Exchange, even if multiple updates are
received in one batch.
|
void |
setAutoUnsubscribe(boolean autoUnsubscribe)
Sets whether auto unsubscribe is enabled in the Continuous Query Consumer.
|
void |
setCacheName(String cacheName)
Sets the cache name.
|
void |
setCachePeekMode(org.apache.ignite.cache.CachePeekMode cachePeekMode)
Sets the
CachePeekMode, only needed for operations that require it (IgniteCacheOperation.SIZE). |
void |
setFailIfInexistentCache(boolean failIfInexistentCache)
Sets whether to fail the initialization if the cache doesn't exist.
|
void |
setFireExistingQueryResults(boolean fireExistingQueryResults)
Sets whether to process existing results that match the query.
|
void |
setOneExchangePerUpdate(boolean oneExchangePerUpdate)
Sets whether to pack each update in an individual Exchange, even if multiple updates are
received in one batch.
|
void |
setOperation(IgniteCacheOperation operation)
Sets the cache operation to invoke.
|
void |
setPageSize(int pageSize)
Sets the page size.
|
void |
setQuery(org.apache.ignite.cache.query.Query<javax.cache.Cache.Entry<Object,Object>> query)
Sets the query to execute, only needed for operations that require it,
and for the Continuous Query Consumer.
|
void |
setRemoteFilter(org.apache.ignite.cache.CacheEntryEventSerializableFilter<Object,Object> remoteFilter)
Sets the remote filter, only used by the Continuous Query Consumer.
|
void |
setTimeInterval(long timeInterval)
Sets the time interval for the Continuous Query Consumer.
|
ignite, igniteComponent, isPropagateIncomingBodyIfNoReturnValue, isSingleton, isTreatCollectionsAsCacheObjects, setPropagateIncomingBodyIfNoReturnValue, setTreatCollectionsAsCacheObjectsconfigureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionpublic String getCacheName()
public void setCacheName(String cacheName)
cacheName - public IgniteCacheOperation getOperation()
public void setOperation(IgniteCacheOperation operation)
operation - public boolean isFailIfInexistentCache()
public void setFailIfInexistentCache(boolean failIfInexistentCache)
failIfInexistentCache - public org.apache.ignite.cache.CachePeekMode getCachePeekMode()
CachePeekMode, only needed for operations that require it (IgniteCacheOperation.SIZE).public void setCachePeekMode(org.apache.ignite.cache.CachePeekMode cachePeekMode)
CachePeekMode, only needed for operations that require it (IgniteCacheOperation.SIZE).cachePeekMode - public org.apache.ignite.cache.query.Query<javax.cache.Cache.Entry<Object,Object>> getQuery()
public void setQuery(org.apache.ignite.cache.query.Query<javax.cache.Cache.Entry<Object,Object>> query)
query - public org.apache.ignite.cache.CacheEntryEventSerializableFilter<Object,Object> getRemoteFilter()
public void setRemoteFilter(org.apache.ignite.cache.CacheEntryEventSerializableFilter<Object,Object> remoteFilter)
remoteFilter - public boolean isOneExchangePerUpdate()
public void setOneExchangePerUpdate(boolean oneExchangePerUpdate)
oneExchangePerUpdate - public boolean isAutoUnsubscribe()
public void setAutoUnsubscribe(boolean autoUnsubscribe)
autoUnsubscribe - public int getPageSize()
public void setPageSize(int pageSize)
pageSize - public boolean isFireExistingQueryResults()
public void setFireExistingQueryResults(boolean fireExistingQueryResults)
fireExistingQueryResults - public long getTimeInterval()
public void setTimeInterval(long timeInterval)
timeInterval - Apache Camel