org.springframework.integration.twitter
Class InboundDMStatusEndpoint
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.twitter.AbstractInboundTwitterEndpointSupport<twitter4j.DirectMessage>
org.springframework.integration.twitter.InboundDMStatusEndpoint
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, InitializingBean, Lifecycle, Phased, SmartLifecycle, NamedComponent
public class InboundDMStatusEndpoint
- extends AbstractInboundTwitterEndpointSupport<twitter4j.DirectMessage>
This class handles support for receiving DMs (direct messages) using Twitter.
- Author:
- Josh Long
Method Summary |
protected void |
markLastStatusId(twitter4j.DirectMessage dm)
|
protected void |
refresh()
|
protected List<twitter4j.DirectMessage> |
sort(List<twitter4j.DirectMessage> rl)
|
Methods inherited from class org.springframework.integration.twitter.AbstractInboundTwitterEndpointSupport |
doStart, doStop, forward, forwardAll, getMarkerId, handleReceivingRateLimitStatus, hasMarkedStatus, onInit, runAsAPIRateLimitsPermit, setConfiguration, setRequestChannel, waitUntilPullAvailable |
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getComponentType, getConversionService, getRequiredMetadataPersister, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, toString |
InboundDMStatusEndpoint
public InboundDMStatusEndpoint()
markLastStatusId
protected void markLastStatusId(twitter4j.DirectMessage dm)
- Specified by:
markLastStatusId
in class AbstractInboundTwitterEndpointSupport<twitter4j.DirectMessage>
sort
protected List<twitter4j.DirectMessage> sort(List<twitter4j.DirectMessage> rl)
- Specified by:
sort
in class AbstractInboundTwitterEndpointSupport<twitter4j.DirectMessage>
refresh
protected void refresh()
throws Exception
- Specified by:
refresh
in class AbstractInboundTwitterEndpointSupport<twitter4j.DirectMessage>
- Throws:
Exception
Copyright © 2010. All Rights Reserved.