@UriEndpoint(scheme="krati",
title="Krati",
syntax="krati:path",
consumerClass=KratiConsumer.class,
label="database,nosql")
public class KratiEndpoint
extends org.apache.camel.impl.ScheduledPollEndpoint
| Modifier and Type | Field and Description |
|---|---|
protected static Map<String,KratiDataStoreRegistration> |
dataStoreRegistry |
protected krati.util.HashFunction<byte[]> |
hashFunction |
protected int |
initialCapacity |
protected String |
key |
protected krati.io.Serializer<Object> |
keySerializer |
protected int |
maxMessagesPerPoll |
protected String |
operation |
protected String |
path |
protected krati.core.segment.SegmentFactory |
segmentFactory |
protected int |
segmentFileSize |
protected String |
value |
protected krati.io.Serializer<Object> |
valueSerializer |
| Constructor and Description |
|---|
KratiEndpoint(String uri,
KratiComponent component) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
krati.util.HashFunction<byte[]> |
getHashFunction() |
int |
getInitialCapacity() |
String |
getKey() |
int |
getMaxMessagesPerPoll() |
String |
getOperation() |
String |
getPath() |
protected String |
getPath(String uri)
Returns the path from the URI.
|
krati.core.segment.SegmentFactory |
getSegmentFactory() |
int |
getSegmentFileSize() |
String |
getValue() |
boolean |
isSingleton() |
void |
setHashFunction(krati.util.HashFunction<byte[]> hashFunction) |
void |
setInitialCapacity(int initialCapacity) |
void |
setKey(String key) |
void |
setMaxMessagesPerPoll(int maxMessagesPerPoll) |
void |
setOperation(String operation) |
void |
setSegmentFactory(krati.core.segment.SegmentFactory segmentFactory) |
void |
setSegmentFileSize(int segmentFileSize) |
void |
setValue(String value) |
void |
stop() |
configurePollingConsumer, configureProperties, configureScheduledPollConsumerProperties, doStart, doStop, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDelay, getInitialDelay, getPollStrategy, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, initConsumerProperties, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelayconfigureConsumer, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, suspendprotected static Map<String,KratiDataStoreRegistration> dataStoreRegistry
@UriPath @Metadata(required="true") protected String path
@UriParam protected String key
@UriParam protected String value
@UriParam protected String operation
@UriParam(defaultValue="100") protected int initialCapacity
@UriParam(defaultValue="64") protected int segmentFileSize
@UriParam protected krati.io.Serializer<Object> keySerializer
@UriParam protected krati.io.Serializer<Object> valueSerializer
@UriParam protected krati.core.segment.SegmentFactory segmentFactory
@UriParam protected krati.util.HashFunction<byte[]> hashFunction
@UriParam protected int maxMessagesPerPoll
public KratiEndpoint(String uri, KratiComponent component) throws URISyntaxException
URISyntaxExceptionpublic void stop()
throws Exception
stop in interface org.apache.camel.Servicestop in class org.apache.camel.support.ServiceSupportExceptionpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionpublic boolean isSingleton()
protected String getPath(String uri) throws URISyntaxException
uri - URISyntaxExceptionpublic String getKey()
public void setKey(String key)
public String getValue()
public void setValue(String value)
public String getOperation()
public void setOperation(String operation)
public int getInitialCapacity()
public void setInitialCapacity(int initialCapacity)
public int getSegmentFileSize()
public void setSegmentFileSize(int segmentFileSize)
public krati.core.segment.SegmentFactory getSegmentFactory()
public void setSegmentFactory(krati.core.segment.SegmentFactory segmentFactory)
public krati.util.HashFunction<byte[]> getHashFunction()
public void setHashFunction(krati.util.HashFunction<byte[]> hashFunction)
public String getPath()
public int getMaxMessagesPerPoll()
public void setMaxMessagesPerPoll(int maxMessagesPerPoll)
Apache Camel