public class KratiEndpoint extends DefaultEndpoint
| 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 String |
operation |
protected String |
path |
protected krati.core.segment.SegmentFactory |
segmentFactory |
protected int |
segmentFileSize |
protected String |
value |
protected krati.io.Serializer<Object> |
valueSerializer |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
KratiEndpoint(String uri,
KratiComponent component) |
| Modifier and Type | Method and Description |
|---|---|
Consumer |
createConsumer(Processor processor)
Creates a new Event
Driven Consumer which consumes messages from the endpoint using the
given processor
|
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint
|
krati.util.HashFunction<byte[]> |
getHashFunction() |
int |
getInitialCapacity() |
String |
getKey() |
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()
Whether this class supports being singleton or not.
|
void |
setHashFunction(krati.util.HashFunction<byte[]> hashFunction) |
void |
setInitialCapacity(int initialCapacity) |
void |
setKey(String key) |
void |
setOperation(String operation) |
void |
setSegmentFactory(krati.core.segment.SegmentFactory segmentFactory) |
void |
setSegmentFileSize(int segmentFileSize) |
void |
setValue(String value) |
void |
stop()
Stops the service
|
configureConsumer, configureProperties, 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, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, 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
public KratiEndpoint(String uri, KratiComponent component) throws URISyntaxException
URISyntaxExceptionpublic void stop()
throws Exception
Servicestop in interface Servicestop in class ServiceSupportException - is thrown if stopping failedpublic Producer createProducer() throws Exception
EndpointException - can be thrownpublic Consumer createConsumer(Processor processor) throws Exception
Endpointprocessor - the given processorException - can be thrownpublic boolean isSingleton()
IsSingletonprotected 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()
Apache CAMEL