@UriEndpoint(scheme="sponge",
title="Sponge",
syntax="sponge:engineRef",
consumerClass=SpongeConsumer.class,
label="sponge")
public class SpongeEndpoint
extends org.apache.camel.impl.DefaultEndpoint
implements org.apache.camel.MultipleConsumersSupport
| Modifier and Type | Field and Description |
|---|---|
static Boolean |
DEFAULT_MANAGED |
| Constructor and Description |
|---|
SpongeEndpoint(String endpointUri,
org.apache.camel.Component component,
org.openksavi.sponge.engine.SpongeEngine engine,
String action,
Boolean managed) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureAction() |
protected void |
configurePlugin() |
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Exchange |
createExchange(Object body) |
org.apache.camel.Producer |
createProducer() |
protected void |
doStart() |
protected void |
doStop() |
String |
getAction() |
org.openksavi.sponge.engine.SpongeEngine |
getEngine() |
String |
getEngineRef() |
Boolean |
getManaged() |
boolean |
isMultipleConsumersSupported() |
boolean |
isSingleton() |
void |
setAction(String action) |
void |
setEngine(org.openksavi.sponge.engine.SpongeEngine engine)
To use the given Sponge engine instance.
|
void |
setEngineRef(String engineRef)
To lookup the Sponge engine from the registry with the given name.
|
void |
setManaged(Boolean managed) |
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic static final Boolean DEFAULT_MANAGED
public org.apache.camel.Producer createProducer()
throws Exception
createProducer in interface org.apache.camel.EndpointExceptionpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
createConsumer in interface org.apache.camel.EndpointExceptionpublic boolean isSingleton()
isSingleton in interface org.apache.camel.IsSingletonpublic boolean isMultipleConsumersSupported()
isMultipleConsumersSupported in interface org.apache.camel.MultipleConsumersSupportpublic org.apache.camel.Exchange createExchange(Object body)
public String getEngineRef()
public void setEngineRef(String engineRef)
engineRef - the engine reference in the repository.public org.openksavi.sponge.engine.SpongeEngine getEngine()
public void setEngine(org.openksavi.sponge.engine.SpongeEngine engine)
engine - the engine.public String getAction()
public void setAction(String action)
public Boolean getManaged()
public void setManaged(Boolean managed)
protected void doStart()
throws Exception
doStart in class org.apache.camel.impl.DefaultEndpointExceptionprotected void configurePlugin()
protected void configureAction()
Copyright © 2016–2018 Softelnet. All rights reserved.