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.Endpoint
,org.apache.camel.IsSingleton
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,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
Fields Modifier and Type Field Description protected String
cacheName
protected HazelcastCommand
command
protected com.hazelcast.core.HazelcastInstance
hazelcastInstance
protected String
hazelcastInstanceName
-
Constructor Summary
Constructors Constructor Description HazelcastDefaultEndpoint(com.hazelcast.core.HazelcastInstance hazelcastInstance, String endpointUri, org.apache.camel.Component component)
HazelcastDefaultEndpoint(com.hazelcast.core.HazelcastInstance hazelcastInstance, String endpointUri, org.apache.camel.Component component, String cacheName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.apache.camel.Consumer
createConsumer(org.apache.camel.Processor processor)
abstract org.apache.camel.Producer
createProducer()
String
getCacheName()
HazelcastCommand
getCommand()
HazelcastOperation
getDefaultOperation()
com.hazelcast.core.HazelcastInstance
getHazelcastInstance()
String
getHazelcastInstanceName()
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
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, doStart, doStop, 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, 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
-
-
-
-
Field Detail
-
command
protected HazelcastCommand command
-
cacheName
@UriPath @Metadata(required=true) protected String cacheName
-
hazelcastInstance
@UriParam protected com.hazelcast.core.HazelcastInstance hazelcastInstance
-
hazelcastInstanceName
@UriParam protected String hazelcastInstanceName
-
-
Constructor Detail
-
HazelcastDefaultEndpoint
public HazelcastDefaultEndpoint(com.hazelcast.core.HazelcastInstance hazelcastInstance, String endpointUri, org.apache.camel.Component component)
-
-
Method Detail
-
createConsumer
public abstract org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
- Throws:
Exception
-
createProducer
public abstract org.apache.camel.Producer createProducer() throws Exception
- Throws:
Exception
-
getCommand
public HazelcastCommand getCommand()
-
setCommand
public void setCommand(HazelcastCommand command)
What operation to perform.
-
getCacheName
public String getCacheName()
-
setCacheName
public void setCacheName(String cacheName)
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
public String getHazelcastInstanceName()
-
setHazelcastInstanceName
public void setHazelcastInstanceName(String hazelcastInstanceName)
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
public void setDefaultOperation(HazelcastOperation defaultOperation)
To specify a default operation to use, if no operation header has been provided.
-
getDefaultOperation
public HazelcastOperation getDefaultOperation()
-
-