@UriEndpoint(firstVersion="2.18.0",
scheme="telegram",
title="Telegram",
syntax="telegram:type",
category={CLOUD,API,CHAT})
public class TelegramEndpoint
extends org.apache.camel.support.ScheduledPollEndpoint
implements org.apache.camel.component.webhook.WebhookCapableEndpoint
| Constructor and Description |
|---|
TelegramEndpoint(String endpointUri,
org.apache.camel.Component component,
TelegramConfiguration configuration,
org.asynchttpclient.AsyncHttpClient client,
org.asynchttpclient.AsyncHttpClientConfig clientConfig) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
org.apache.camel.Processor |
createWebhookHandler(org.apache.camel.Processor next) |
protected void |
doStart() |
protected void |
doStop() |
int |
getBufferSize() |
org.asynchttpclient.AsyncHttpClient |
getClient() |
org.asynchttpclient.AsyncHttpClientConfig |
getClientConfig() |
TelegramConfiguration |
getConfiguration() |
TelegramService |
getTelegramService() |
org.apache.camel.component.webhook.WebhookConfiguration |
getWebhookConfiguration() |
List<String> |
getWebhookMethods() |
void |
registerWebhook() |
void |
setBufferSize(int bufferSize)
The initial in-memory buffer size used when transferring data between Camel and AHC Client.
|
void |
setClient(org.asynchttpclient.AsyncHttpClient client)
To use a custom
AsyncHttpClient |
void |
setClientConfig(org.asynchttpclient.AsyncHttpClientConfig clientConfig)
To configure the AsyncHttpClient to use a custom com.ning.http.client.AsyncHttpClientConfig instance.
|
void |
setConfiguration(TelegramConfiguration configuration) |
void |
setWebhookConfiguration(org.apache.camel.component.webhook.WebhookConfiguration webhookConfiguration) |
void |
unregisterWebhook() |
configureConsumer, configureProperties, configureScheduledPollConsumerProperties, doConfigureConsumer, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDefaultDelay, getDelay, getInitialDelay, getPollStrategy, getRepeatCount, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRepeatCount, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelayconfigureExchange, configurePollingConsumer, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, 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, waitconfigureExchange, configureProperties, createAsyncProducer, createExchange, createExchange, createPollingConsumer, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, getExchangePattern, isLenientProperties, isSingletonProducer, setCamelContextpublic TelegramEndpoint(String endpointUri, org.apache.camel.Component component, TelegramConfiguration configuration, org.asynchttpclient.AsyncHttpClient client, org.asynchttpclient.AsyncHttpClientConfig clientConfig)
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.ScheduledPollEndpointExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.ScheduledPollEndpointExceptionpublic 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 org.apache.camel.Processor createWebhookHandler(org.apache.camel.Processor next)
createWebhookHandler in interface org.apache.camel.component.webhook.WebhookCapableEndpointpublic void registerWebhook()
throws Exception
registerWebhook in interface org.apache.camel.component.webhook.WebhookCapableEndpointExceptionpublic void unregisterWebhook()
throws Exception
unregisterWebhook in interface org.apache.camel.component.webhook.WebhookCapableEndpointExceptionpublic org.apache.camel.component.webhook.WebhookConfiguration getWebhookConfiguration()
public void setWebhookConfiguration(org.apache.camel.component.webhook.WebhookConfiguration webhookConfiguration)
setWebhookConfiguration in interface org.apache.camel.component.webhook.WebhookCapableEndpointpublic List<String> getWebhookMethods()
getWebhookMethods in interface org.apache.camel.component.webhook.WebhookCapableEndpointpublic TelegramConfiguration getConfiguration()
public void setConfiguration(TelegramConfiguration configuration)
public TelegramService getTelegramService()
public org.asynchttpclient.AsyncHttpClient getClient()
public void setClient(org.asynchttpclient.AsyncHttpClient client)
AsyncHttpClientpublic org.asynchttpclient.AsyncHttpClientConfig getClientConfig()
public void setClientConfig(org.asynchttpclient.AsyncHttpClientConfig clientConfig)
public int getBufferSize()
public void setBufferSize(int bufferSize)
Apache Camel