Class HazelcastDefaultEndpoint

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected String cacheName  
      protected HazelcastCommand command  
      protected com.hazelcast.core.HazelcastInstance hazelcastInstance  
      protected String hazelcastInstanceName  
      • 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

      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 cache
      void 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 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 Detail

      • 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)
      • HazelcastDefaultEndpoint

        public HazelcastDefaultEndpoint​(com.hazelcast.core.HazelcastInstance hazelcastInstance,
                                        String endpointUri,
                                        org.apache.camel.Component component,
                                        String cacheName)
    • 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
      • 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.