Class IgniteIdGenEndpoint
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.support.DefaultEndpoint
-
- org.apache.camel.component.ignite.AbstractIgniteEndpoint
-
- org.apache.camel.component.ignite.idgen.IgniteIdGenEndpoint
-
- 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
@UriEndpoint(firstVersion="2.17.0", scheme="ignite-idgen", title="Ignite ID Generator", syntax="ignite-idgen:name", category=COMPUTE, producerOnly=true) public class IgniteIdGenEndpoint extends AbstractIgniteEndpointInteract with Ignite Atomic Sequences and ID Generators . This endpoint only supports producers.
-
-
Constructor Summary
Constructors Constructor Description IgniteIdGenEndpoint(String endpointUri, String remaining, Map<String,Object> parameters, IgniteIdGenComponent igniteComponent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.ConsumercreateConsumer(org.apache.camel.Processor processor)org.apache.camel.ProducercreateProducer()IntegergetBatchSize()Gets the batch size.LonggetInitialValue()Gets the initial value.StringgetName()Gets the name.IgniteIdGenOperationgetOperation()Gets the operation.voidsetBatchSize(Integer batchSize)The batch size.voidsetInitialValue(Long initialValue)The initial value.voidsetName(String name)The sequence name.voidsetOperation(IgniteIdGenOperation operation)The operation to invoke on the Ignite ID Generator.-
Methods inherited from class org.apache.camel.component.ignite.AbstractIgniteEndpoint
ignite, igniteComponent, isPropagateIncomingBodyIfNoReturnValue, isTreatCollectionsAsCacheObjects, setPropagateIncomingBodyIfNoReturnValue, setTreatCollectionsAsCacheObjects
-
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
-
-
-
-
Method Detail
-
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception- Throws:
Exception
-
getName
public String getName()
Gets the name.
-
setName
public void setName(String name)
The sequence name.
-
getInitialValue
public Long getInitialValue()
Gets the initial value.
-
setInitialValue
public void setInitialValue(Long initialValue)
The initial value.
-
getOperation
public IgniteIdGenOperation getOperation()
Gets the operation.
-
setOperation
public void setOperation(IgniteIdGenOperation operation)
The operation to invoke on the Ignite ID Generator. Superseded by the IgniteConstants.IGNITE_IDGEN_OPERATION header in the IN message. Possible values: ADD_AND_GET, GET, GET_AND_ADD, GET_AND_INCREMENT, INCREMENT_AND_GET.
-
getBatchSize
public Integer getBatchSize()
Gets the batch size.
-
setBatchSize
public void setBatchSize(Integer batchSize)
The batch size.
-
-