@Component(value="google-pubsub")
public class GooglePubsubComponent
extends org.apache.camel.support.DefaultComponent
GooglePubsubEndpoint.| Constructor and Description |
|---|
GooglePubsubComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters) |
protected void |
doShutdown() |
String |
getEndpoint() |
com.google.cloud.pubsub.v1.Publisher |
getPublisher(String topicName,
GooglePubsubEndpoint googlePubsubEndpoint) |
int |
getPublisherCacheSize() |
int |
getPublisherCacheTimeout() |
int |
getPublisherTerminationTimeout() |
String |
getServiceAccountKey() |
com.google.cloud.pubsub.v1.Subscriber |
getSubscriber(String subscriptionName,
com.google.cloud.pubsub.v1.MessageReceiver messageReceiver,
GooglePubsubEndpoint googlePubsubEndpoint) |
com.google.cloud.pubsub.v1.stub.SubscriberStub |
getSubscriberStub(GooglePubsubEndpoint googlePubsubEndpoint) |
boolean |
isAuthenticate() |
void |
setAuthenticate(boolean authenticate) |
void |
setEndpoint(String endpoint) |
void |
setPublisherCacheSize(int publisherCacheSize) |
void |
setPublisherCacheTimeout(int publisherCacheTimeout) |
void |
setPublisherTerminationTimeout(int publisherTerminationTimeout) |
void |
setServiceAccountKey(String serviceAccountKey) |
afterConfiguration, createEndpoint, createEndpoint, doBuild, doInit, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getDefaultName, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, resolveRawParameterValues, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURIbuild, doFail, doLifecycleChange, doResume, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint in class org.apache.camel.support.DefaultComponentExceptionprotected void doShutdown()
throws Exception
doShutdown in class org.apache.camel.support.service.BaseServiceExceptionpublic com.google.cloud.pubsub.v1.Publisher getPublisher(String topicName, GooglePubsubEndpoint googlePubsubEndpoint) throws ExecutionException
ExecutionExceptionpublic com.google.cloud.pubsub.v1.Subscriber getSubscriber(String subscriptionName, com.google.cloud.pubsub.v1.MessageReceiver messageReceiver, GooglePubsubEndpoint googlePubsubEndpoint) throws IOException
IOExceptionpublic com.google.cloud.pubsub.v1.stub.SubscriberStub getSubscriberStub(GooglePubsubEndpoint googlePubsubEndpoint) throws IOException
IOExceptionpublic String getEndpoint()
public void setEndpoint(String endpoint)
public int getPublisherCacheSize()
public void setPublisherCacheSize(int publisherCacheSize)
public int getPublisherCacheTimeout()
public void setPublisherCacheTimeout(int publisherCacheTimeout)
public int getPublisherTerminationTimeout()
public void setPublisherTerminationTimeout(int publisherTerminationTimeout)
public boolean isAuthenticate()
public void setAuthenticate(boolean authenticate)
public String getServiceAccountKey()
public void setServiceAccountKey(String serviceAccountKey)
Apache Camel