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.EndpointServiceLocation,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
implements org.apache.camel.spi.EndpointServiceLocation
The hazelcast component allows you to work with the Hazelcast distributed data grid / cache.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected HazelcastCommandprotected com.hazelcast.core.HazelcastInstanceprotected StringFields 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
ConstructorsModifierConstructorDescriptionprotectedHazelcastDefaultEndpoint(com.hazelcast.core.HazelcastInstance hazelcastInstance, String endpointUri, org.apache.camel.Component component) protectedHazelcastDefaultEndpoint(com.hazelcast.core.HazelcastInstance hazelcastInstance, String endpointUri, org.apache.camel.Component component, String cacheName) -
Method Summary
Modifier and TypeMethodDescriptionabstract org.apache.camel.ConsumercreateConsumer(org.apache.camel.Processor processor) abstract org.apache.camel.Producercom.hazelcast.core.HazelcastInstancevoidsetCacheName(String cacheName) The name of the cachevoidsetCommand(HazelcastCommand command) What operation to perform.voidsetDefaultOperation(HazelcastOperation defaultOperation) To specify a default operation to use, if no operation header has been provided.voidsetHazelcastConfigUri(String hazelcastConfigUri) Hazelcast configuration file.voidsetHazelcastInstance(com.hazelcast.core.HazelcastInstance hazelcastInstance) The hazelcast instance reference which can be used for hazelcast endpoint.voidsetHazelcastInstanceName(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, toStringMethods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doStart, doStop, doSuspend, fail, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.ComponentAware
getComponentMethods inherited from interface org.apache.camel.Endpoint
getEndpointBaseUri, isRemote, isSingletonProducerMethods inherited from interface org.apache.camel.spi.EndpointServiceLocation
getServiceMetadataMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods 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
-
getServiceUrl
- Specified by:
getServiceUrlin interfaceorg.apache.camel.spi.EndpointServiceLocation
-
getServiceProtocol
- Specified by:
getServiceProtocolin interfaceorg.apache.camel.spi.EndpointServiceLocation
-
createConsumer
public abstract org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception - Specified by:
createConsumerin interfaceorg.apache.camel.Endpoint- Throws:
Exception
-
createProducer
- Specified by:
createProducerin interfaceorg.apache.camel.Endpoint- 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.
-