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, configureScheduledPollConsumerPropertiesconfigureConsumer, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, suspendprotected static Map<String,KratiDataStoreRegistration> dataStoreRegistry
protected String key
protected String value
protected String operation
protected int initialCapacity
protected int segmentFileSize
protected krati.io.Serializer<Object> keySerializer
protected krati.io.Serializer<Object> valueSerializer
protected krati.core.segment.SegmentFactory segmentFactory
protected krati.util.HashFunction<byte[]> hashFunction
protected String path
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