@UriEndpoint(scheme="jcr", consumerClass=JcrConsumer.class) public class JcrEndpoint extends org.apache.camel.impl.DefaultEndpoint
Modifier | Constructor and Description |
---|---|
protected |
JcrEndpoint(String endpointUri,
JcrComponent component) |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
protected String |
getBase()
Get the base node when accessing the reposititory
|
protected javax.jcr.Credentials |
getCredentials()
Get the
Credentials for establishing the JCR repository connection |
String |
getEndpointConfiguredDestinationName()
Gets the destination name which was configured from the endpoint uri.
|
int |
getEventTypes()
eventTypes (a combination of one or more event types encoded
as a bit mask value such as javax.jcr.observation.Event.NODE_ADDED, javax.jcr.observation.Event.NODE_REMOVED, etc.). |
String |
getNodeTypeNames()
When a comma separated
nodeTypeName list string is set, only events whose associated parent node has
one of the node types (or a subtype of one of the node types) in this
list will be received. |
protected javax.jcr.Repository |
getRepository()
Get the
Repository |
long |
getSessionLiveCheckInterval()
Interval in milliseconds to wait before each session live checking
The default value is 60000 ms.
|
long |
getSessionLiveCheckIntervalOnStart()
Interval in milliseconds to wait before the first session live checking.
|
String |
getUuids()
When a comma separated uuid list string is set, only events whose associated parent node has one of
the identifiers in the comma separated uuid list will be received.
|
boolean |
isDeep()
When
isDeep is true, events whose associated parent node is at
absPath or within its subgraph are received. |
boolean |
isNoLocal()
If
noLocal is true , then events
generated by the session through which the listener was registered are
ignored. |
boolean |
isSingleton() |
void |
setDeep(boolean deep) |
void |
setEventTypes(int eventTypes) |
void |
setNodeTypeNames(String nodeTypeNames) |
void |
setNoLocal(boolean noLocal) |
void |
setSessionLiveCheckInterval(long sessionLiveCheckInterval) |
void |
setSessionLiveCheckIntervalOnStart(long sessionLiveCheckIntervalOnStart) |
void |
setUuids(String uuids) |
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
protected JcrEndpoint(String endpointUri, JcrComponent component)
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
Exception
public boolean isSingleton()
protected javax.jcr.Repository getRepository()
Repository
protected javax.jcr.Credentials getCredentials()
Credentials
for establishing the JCR repository connectionprotected String getBase()
public int getEventTypes()
eventTypes
(a combination of one or more event types encoded
as a bit mask value such as javax.jcr.observation.Event.NODE_ADDED, javax.jcr.observation.Event.NODE_REMOVED, etc.).javax.jcr.observation.Event}
,
javax.jcr.observation.ObservationManager#addEventListener(javax.jcr.observation.EventListener, int, String, boolean, String[], String[], boolean)}
public void setEventTypes(int eventTypes)
public boolean isDeep()
isDeep
is true, events whose associated parent node is at
absPath
or within its subgraph are received.public void setDeep(boolean deep)
public String getUuids()
public void setUuids(String uuids)
public String getNodeTypeNames()
nodeTypeName
list string is set, only events whose associated parent node has
one of the node types (or a subtype of one of the node types) in this
list will be received.public void setNodeTypeNames(String nodeTypeNames)
public boolean isNoLocal()
noLocal
is true
, then events
generated by the session through which the listener was registered are
ignored. Otherwise, they are not ignored.public void setNoLocal(boolean noLocal)
public long getSessionLiveCheckIntervalOnStart()
public void setSessionLiveCheckIntervalOnStart(long sessionLiveCheckIntervalOnStart)
public long getSessionLiveCheckInterval()
public void setSessionLiveCheckInterval(long sessionLiveCheckInterval)
public String getEndpointConfiguredDestinationName()
Apache Camel