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
Fields 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
ConstructorDescriptionAbstractTwitterEndpoint
(String uri, AbstractTwitterComponent component, TwitterConfiguration properties) -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureConsumer
(org.apache.camel.Consumer consumer) getCount()
getLang()
long
boolean
void
void
setDelay
(long delay) Milliseconds before the next poll.void
setFilterOld
(boolean filterOld) void
void
setLocations
(String locations) void
setNumberOfPages
(Integer numberOfPages) void
setProperties
(TwitterConfiguration properties) void
setSinceId
(long sinceId) Methods inherited from class org.apache.camel.support.DefaultPollingEndpoint
createConsumer
Methods 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, setUseFixedDelay
Methods 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, toString
Methods 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, suspend
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.camel.ComponentAware
getComponent, getComponent, setComponent
Methods inherited from interface org.apache.camel.Endpoint
configureExchange, configureProperties, createAsyncProducer, createConsumer, createExchange, createExchange, createPollingConsumer, createProducer, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, getExchangePattern, isLenientProperties, isSingletonProducer, setCamelContext
Methods inherited from interface org.apache.camel.IsSingleton
isSingleton
Methods inherited from interface org.apache.camel.Service
build, close, init, start, stop
Methods inherited from interface org.apache.camel.ShutdownableService
shutdown
Methods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending
Methods 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:
configureConsumer
in classorg.apache.camel.support.ScheduledPollEndpoint
- Throws:
Exception
-
getProperties
- Specified by:
getProperties
in 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:
getEndpointType
in interfaceTwitterEndpoint
-
setDelay
public void setDelay(long delay) Milliseconds before the next poll.- Overrides:
setDelay
in classorg.apache.camel.support.ScheduledPollEndpoint
-