Class HazelcastDefaultEndpoint
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.DefaultEndpoint
org.apache.camel.component.hazelcast.HazelcastDefaultEndpoint
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.CamelContextAware
,org.apache.camel.ComponentAware
,org.apache.camel.Endpoint
,org.apache.camel.IsSingleton
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.spi.HasCamelContext
,org.apache.camel.spi.HasId
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
- Direct Known Subclasses:
HazelcastAtomicnumberEndpoint
,HazelcastInstanceEndpoint
,HazelcastListEndpoint
,HazelcastMapEndpoint
,HazelcastMultimapEndpoint
,HazelcastQueueEndpoint
,HazelcastReplicatedmapEndpoint
,HazelcastRingbufferEndpoint
,HazelcastSedaEndpoint
,HazelcastSetEndpoint
,HazelcastTopicEndpoint
public abstract class HazelcastDefaultEndpoint
extends org.apache.camel.support.DefaultEndpoint
The hazelcast component allows you to work with the Hazelcast distributed data grid / cache.
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected HazelcastCommand
protected com.hazelcast.core.HazelcastInstance
protected String
Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
-
Constructor Summary
ModifierConstructorDescriptionprotected
HazelcastDefaultEndpoint
(com.hazelcast.core.HazelcastInstance hazelcastInstance, String endpointUri, org.apache.camel.Component component) protected
HazelcastDefaultEndpoint
(com.hazelcast.core.HazelcastInstance hazelcastInstance, String endpointUri, org.apache.camel.Component component, String cacheName) -
Method Summary
Modifier and TypeMethodDescriptionabstract org.apache.camel.Consumer
createConsumer
(org.apache.camel.Processor processor) abstract org.apache.camel.Producer
com.hazelcast.core.HazelcastInstance
void
setCacheName
(String cacheName) The name of the cachevoid
setCommand
(HazelcastCommand command) What operation to perform.void
setDefaultOperation
(HazelcastOperation defaultOperation) To specify a default operation to use, if no operation header has been provided.void
setHazelcastConfigUri
(String hazelcastConfigUri) Hazelcast configuration file.void
setHazelcastInstance
(com.hazelcast.core.HazelcastInstance hazelcastInstance) The hazelcast instance reference which can be used for hazelcast endpoint.void
setHazelcastInstanceName
(String hazelcastInstanceName) The hazelcast instance reference name which can be used for hazelcast endpoint.Methods inherited from class org.apache.camel.support.DefaultEndpoint
configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toString
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doStart, doStop, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.camel.ComponentAware
getComponent
Methods inherited from interface org.apache.camel.Endpoint
getEndpointBaseUri, isSingletonProducer
Methods inherited from interface org.apache.camel.Service
build, close, init, start, stop
Methods inherited from interface org.apache.camel.ShutdownableService
shutdown
Methods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending
Methods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Field Details
-
command
-
cacheName
-
hazelcastInstance
@UriParam protected com.hazelcast.core.HazelcastInstance hazelcastInstance -
hazelcastInstanceName
-
-
Constructor Details
-
HazelcastDefaultEndpoint
protected HazelcastDefaultEndpoint(com.hazelcast.core.HazelcastInstance hazelcastInstance, String endpointUri, org.apache.camel.Component component) -
HazelcastDefaultEndpoint
-
-
Method Details
-
createConsumer
public abstract org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception - Throws:
Exception
-
createProducer
- Throws:
Exception
-
getCommand
-
setCommand
What operation to perform. -
getCacheName
-
setCacheName
The name of the cache -
getHazelcastInstance
public com.hazelcast.core.HazelcastInstance getHazelcastInstance() -
setHazelcastInstance
public void setHazelcastInstance(com.hazelcast.core.HazelcastInstance hazelcastInstance) The hazelcast instance reference which can be used for hazelcast endpoint. -
getHazelcastInstanceName
-
setHazelcastInstanceName
The hazelcast instance reference name which can be used for hazelcast endpoint. If you don't specify the instance reference, camel use the default hazelcast instance from the camel-hazelcast instance. -
setDefaultOperation
To specify a default operation to use, if no operation header has been provided. -
getDefaultOperation
-
getHazelcastConfigUri
-
setHazelcastConfigUri
Hazelcast configuration file.
-