@UriEndpoint(firstVersion="2.19.0",
scheme="couchbase",
title="Couchbase",
syntax="couchbase:protocol:hostname:port",
category={DATABASE,NOSQL})
public class CouchbaseEndpoint
extends org.apache.camel.support.ScheduledPollEndpoint
| Constructor and Description |
|---|
CouchbaseEndpoint() |
CouchbaseEndpoint(String endpointUri,
CouchbaseComponent component) |
CouchbaseEndpoint(String uri,
String remaining,
CouchbaseComponent component) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
String |
getAdditionalHosts() |
String |
getBucket() |
String |
getCollection()
The collection to use
|
long |
getConnectTimeout() |
String |
getConsumerProcessedStrategy() |
String |
getDesignDocumentName() |
String |
getHostname() |
String |
getKey() |
int |
getLimit() |
String |
getOperation() |
String |
getPassword() |
int |
getPersistTo() |
int |
getPort() |
int |
getProducerRetryAttempts() |
int |
getProducerRetryPause() |
String |
getProtocol() |
long |
getQueryTimeout() |
String |
getRangeEndKey() |
String |
getRangeStartKey() |
int |
getReplicateTo() |
String |
getScope() |
int |
getSkip() |
long |
getStartingIdForInsertsFrom() |
String |
getUsername() |
String |
getViewName() |
boolean |
isAutoStartIdForInserts() |
boolean |
isDescending() |
boolean |
isFullDocument() |
URI[] |
makeBootstrapURI() |
void |
setAdditionalHosts(String additionalHosts)
The additional hosts
|
void |
setAutoStartIdForInserts(boolean autoStartIdForInserts)
Define if we want an autostart Id when we are doing an insert operation
|
void |
setBucket(String bucket)
The bucket to use
|
void |
setCollection(String collection) |
void |
setConnectTimeout(long connectTimeout)
Define the timeoutconnect in milliseconds
|
void |
setConsumerProcessedStrategy(String consumerProcessedStrategy)
Define the consumer Processed strategy to use
|
void |
setDescending(boolean descending)
Define if this operation is descending or not
|
void |
setDesignDocumentName(String designDocumentName)
The design document name to use
|
void |
setFullDocument(boolean fullDocument)
If true consumer will return complete document instead data defined in view
|
void |
setHostname(String hostname)
The hostname to use
|
void |
setKey(String key)
The key to use
|
void |
setLimit(int limit)
The output limit to use
|
void |
setOperation(String operation)
The operation to do
|
void |
setPassword(String password)
The password to use
|
void |
setPersistTo(int persistTo)
Where to persist the data
|
void |
setPort(int port)
The port number to use
|
void |
setProducerRetryAttempts(int producerRetryAttempts)
Define the number of retry attempts
|
void |
setProducerRetryPause(int producerRetryPause)
Define the retry pause between different attempts
|
void |
setProtocol(String protocol)
The protocol to use
|
void |
setQueryTimeout(long queryTimeout)
Define the operation timeout in milliseconds
|
void |
setRangeEndKey(String rangeEndKey)
Define a range for the end key
|
void |
setRangeStartKey(String rangeStartKey)
Define a range for the start key
|
void |
setReplicateTo(int replicateTo)
Where to replicate the data
|
void |
setScope(String scope)
The scope to use
|
void |
setSkip(int skip)
Define the skip to use
|
void |
setStartingIdForInsertsFrom(long startingIdForInsertsFrom)
Define the starting Id where we are doing an insert operation
|
void |
setUsername(String username)
The username to use
|
void |
setViewName(String viewName)
The view name to use
|
configureConsumer, configureProperties, configureScheduledPollConsumerProperties, doConfigureConsumer, doStart, doStop, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDefaultDelay, getDelay, getInitialDelay, getPollStrategy, getRepeatCount, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRepeatCount, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelayconfigurePollingConsumer, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, toStringbuild, 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, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic CouchbaseEndpoint()
public CouchbaseEndpoint(String uri, String remaining, CouchbaseComponent component) throws URISyntaxException
URISyntaxExceptionpublic CouchbaseEndpoint(String endpointUri, CouchbaseComponent component)
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionpublic String getProtocol()
public void setProtocol(String protocol)
public String getBucket()
public void setBucket(String bucket)
public String getHostname()
public void setHostname(String hostname)
public int getPort()
public void setPort(int port)
public String getCollection()
public void setCollection(String collection)
public String getScope()
public void setScope(String scope)
public String getKey()
public void setKey(String key)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public String getAdditionalHosts()
public void setAdditionalHosts(String additionalHosts)
public int getPersistTo()
public void setPersistTo(int persistTo)
public int getReplicateTo()
public void setReplicateTo(int replicateTo)
public String getOperation()
public void setOperation(String operation)
public boolean isAutoStartIdForInserts()
public void setAutoStartIdForInserts(boolean autoStartIdForInserts)
public long getStartingIdForInsertsFrom()
public void setStartingIdForInsertsFrom(long startingIdForInsertsFrom)
public int getProducerRetryAttempts()
public void setProducerRetryAttempts(int producerRetryAttempts)
public int getProducerRetryPause()
public void setProducerRetryPause(int producerRetryPause)
public String getDesignDocumentName()
public void setDesignDocumentName(String designDocumentName)
public String getViewName()
public void setViewName(String viewName)
public int getLimit()
public void setLimit(int limit)
public boolean isDescending()
public void setDescending(boolean descending)
public int getSkip()
public void setSkip(int skip)
public String getRangeStartKey()
public void setRangeStartKey(String rangeStartKey)
public String getRangeEndKey()
public void setRangeEndKey(String rangeEndKey)
public boolean isFullDocument()
public void setFullDocument(boolean fullDocument)
public String getConsumerProcessedStrategy()
public void setConsumerProcessedStrategy(String consumerProcessedStrategy)
public long getQueryTimeout()
public void setQueryTimeout(long queryTimeout)
public long getConnectTimeout()
public void setConnectTimeout(long connectTimeout)
public URI[] makeBootstrapURI() throws URISyntaxException
URISyntaxExceptionApache Camel