Class AbstractTwitterEndpoint
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.DefaultEndpoint
org.apache.camel.support.ScheduledPollEndpoint
org.apache.camel.support.DefaultPollingEndpoint
org.apache.camel.component.twitter.AbstractTwitterEndpoint
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,TwitterEndpoint,org.apache.camel.ComponentAware,org.apache.camel.Endpoint,org.apache.camel.IsSingleton,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.HasCamelContext,org.apache.camel.spi.HasId,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
- Direct Known Subclasses:
TwitterDirectMessageEndpoint,TwitterSearchEndpoint,TwitterTimelineEndpoint
public abstract class AbstractTwitterEndpoint
extends org.apache.camel.support.DefaultPollingEndpoint
implements TwitterEndpoint
The base Twitter Endpoint.
-
Field Summary
FieldsFields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING -
Constructor Summary
ConstructorsConstructorDescriptionAbstractTwitterEndpoint(String uri, AbstractTwitterComponent component, TwitterConfiguration properties) -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureConsumer(org.apache.camel.Consumer consumer) getCount()getLang()longbooleanvoidvoidsetDelay(long delay) Milliseconds before the next poll.voidsetFilterOld(boolean filterOld) voidvoidsetLocations(String locations) voidsetNumberOfPages(Integer numberOfPages) voidsetProperties(TwitterConfiguration properties) voidsetSinceId(long sinceId) Methods inherited from class org.apache.camel.support.DefaultPollingEndpoint
createConsumerMethods inherited from class org.apache.camel.support.ScheduledPollEndpoint
configureProperties, configureScheduledPollConsumerProperties, doConfigureConsumer, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDefaultDelay, getDelay, getInitialDelay, getPollStrategy, getRepeatCount, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setGreedy, setInitialDelay, setPollStrategy, setRepeatCount, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelayMethods inherited from class org.apache.camel.support.DefaultEndpoint
configureExchange, 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, toStringMethods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doStart, doStop, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.ComponentAware
getComponent, getComponent, setComponentMethods inherited from interface org.apache.camel.Endpoint
configureExchange, configureProperties, createAsyncProducer, createConsumer, createExchange, createExchange, createPollingConsumer, createProducer, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, getExchangePattern, isLenientProperties, isSingletonProducer, setCamelContextMethods inherited from interface org.apache.camel.IsSingleton
isSingletonMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Field Details
-
DEFAULT_CONSUMER_DELAY
public static final long DEFAULT_CONSUMER_DELAY- See Also:
-
-
Constructor Details
-
AbstractTwitterEndpoint
public AbstractTwitterEndpoint(String uri, AbstractTwitterComponent component, TwitterConfiguration properties)
-
-
Method Details
-
configureConsumer
- Overrides:
configureConsumerin classorg.apache.camel.support.ScheduledPollEndpoint- Throws:
Exception
-
getProperties
- Specified by:
getPropertiesin interfaceTwitterEndpoint
-
setProperties
-
getLocations
-
setLocations
-
setFilterOld
@ManagedAttribute public void setFilterOld(boolean filterOld) -
isFilterOld
@ManagedAttribute public boolean isFilterOld() -
setSinceId
@ManagedAttribute public void setSinceId(long sinceId) -
getSinceId
@ManagedAttribute public long getSinceId() -
setLang
-
getLang
-
setCount
-
getCount
-
setNumberOfPages
-
getNumberOfPages
-
getEndpointType
- Specified by:
getEndpointTypein interfaceTwitterEndpoint
-
setDelay
public void setDelay(long delay) Milliseconds before the next poll.- Overrides:
setDelayin classorg.apache.camel.support.ScheduledPollEndpoint
-