Class AbstractTwitterEndpoint

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long DEFAULT_CONSUMER_DELAY  
      • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configureConsumer​(org.apache.camel.Consumer consumer)  
      protected void doStop()  
      Integer getCount()  
      EndpointType getEndpointType()  
      String getLang()  
      String getLocations()  
      Integer getNumberOfPages()  
      TwitterConfiguration getProperties()  
      long getSinceId()  
      boolean isFilterOld()  
      void setCount​(Integer count)  
      void setDelay​(long delay)
      Milliseconds before the next poll.
      void setFilterOld​(boolean filterOld)  
      void setLang​(String lang)  
      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, doStart, 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, 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 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 Detail

      • DEFAULT_CONSUMER_DELAY

        public static final long DEFAULT_CONSUMER_DELAY
        See Also:
        Constant Field Values
    • Method Detail

      • doStop

        protected void doStop()
                       throws Exception
        Overrides:
        doStop in class org.apache.camel.support.ScheduledPollEndpoint
        Throws:
        Exception
      • configureConsumer

        public void configureConsumer​(org.apache.camel.Consumer consumer)
                               throws Exception
        Overrides:
        configureConsumer in class org.apache.camel.support.ScheduledPollEndpoint
        Throws:
        Exception
      • getLocations

        @ManagedAttribute
        public String getLocations()
      • setLocations

        @ManagedAttribute
        public void setLocations​(String locations)
      • 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

        @ManagedAttribute
        public void setLang​(String lang)
      • getLang

        @ManagedAttribute
        public String getLang()
      • setCount

        @ManagedAttribute
        public void setCount​(Integer count)
      • getCount

        @ManagedAttribute
        public Integer getCount()
      • setNumberOfPages

        @ManagedAttribute
        public void setNumberOfPages​(Integer numberOfPages)
      • getNumberOfPages

        @ManagedAttribute
        public Integer getNumberOfPages()
      • setDelay

        public void setDelay​(long delay)
        Milliseconds before the next poll.
        Overrides:
        setDelay in class org.apache.camel.support.ScheduledPollEndpoint