@UriEndpoint(firstVersion="1.0.0",
scheme="sponge",
title="Sponge",
syntax="sponge:engineRef",
category=JAVA)
public class SpongeEndpoint
extends org.apache.camel.support.DefaultEndpoint
implements org.apache.camel.MultipleConsumersSupport
| Modifier and Type | Field and Description |
|---|---|
static Boolean |
DEFAULT_MANAGED |
| Constructor and Description |
|---|
SpongeEndpoint() |
SpongeEndpoint(String uri,
SpongeComponent 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 |
doInit() |
protected void |
doStart() |
protected void |
doStop() |
String |
getAction()
Returns the action name.
|
org.openksavi.sponge.engine.SpongeEngine |
getEngine() |
String |
getEngineRef() |
Boolean |
getManaged()
Returns the managed flag.
|
boolean |
isMultipleConsumersSupported() |
boolean |
isSingleton() |
void |
setAction(String action)
Sets the action name.
|
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)
Sets the managed flag.
|
configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, 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 static final Boolean DEFAULT_MANAGED
public SpongeEndpoint()
public SpongeEndpoint(String uri, SpongeComponent component, org.openksavi.sponge.engine.SpongeEngine engine, String action, Boolean 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.IsSingletonisSingleton in class org.apache.camel.support.DefaultEndpointpublic 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)
action - the action name.public Boolean getManaged()
public void setManaged(Boolean managed)
managed - the managed flag.protected void doInit()
throws Exception
doInit in class org.apache.camel.support.DefaultEndpointExceptionprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.DefaultEndpointExceptionprotected void configurePlugin()
protected void configureAction()
Copyright © 2016–2021 Softelnet. All rights reserved.