@UriEndpoint(firstVersion="2.8.0",
scheme="aws-sns",
title="AWS Simple Notification System",
syntax="aws-sns:topicNameOrArn",
producerOnly=true,
label="cloud,mobile,messaging")
public class SnsEndpoint
extends org.apache.camel.support.DefaultEndpoint
implements org.apache.camel.spi.HeaderFilterStrategyAware
| Constructor and Description |
|---|
SnsEndpoint(String uri,
org.apache.camel.Component component,
SnsConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
void |
doStart() |
void |
doStop() |
SnsConfiguration |
getConfiguration() |
org.apache.camel.spi.HeaderFilterStrategy |
getHeaderFilterStrategy() |
com.amazonaws.services.sns.AmazonSNS |
getSNSClient() |
boolean |
isSingleton() |
void |
setConfiguration(SnsConfiguration configuration) |
void |
setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy strategy)
To use a custom HeaderFilterStrategy to map headers to/from Camel.
|
void |
setSNSClient(com.amazonaws.services.sns.AmazonSNS snsClient) |
configureConsumer, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoInit, doResume, doShutdown, doSuspend, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic SnsEndpoint(String uri, org.apache.camel.Component component, SnsConfiguration configuration)
public org.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
getHeaderFilterStrategy in interface org.apache.camel.spi.HeaderFilterStrategyAwarepublic void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy strategy)
setHeaderFilterStrategy in interface org.apache.camel.spi.HeaderFilterStrategyAwarepublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
createConsumer in interface org.apache.camel.EndpointExceptionpublic org.apache.camel.Producer createProducer()
throws Exception
createProducer in interface org.apache.camel.EndpointExceptionpublic boolean isSingleton()
isSingleton in interface org.apache.camel.IsSingletonpublic void doStart()
throws Exception
doStart in class org.apache.camel.support.DefaultEndpointExceptionpublic void doStop()
throws Exception
doStop in class org.apache.camel.support.DefaultEndpointExceptionpublic SnsConfiguration getConfiguration()
public void setConfiguration(SnsConfiguration configuration)
public void setSNSClient(com.amazonaws.services.sns.AmazonSNS snsClient)
public com.amazonaws.services.sns.AmazonSNS getSNSClient()
Apache Camel