|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.twitter.inbound.DirectMessageReceivingMessageSource
public class DirectMessageReceivingMessageSource
This class handles support for receiving DMs (direct messages) using Twitter.
| Field Summary |
|---|
| Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
DirectMessageReceivingMessageSource(TwitterOperations twitter)
|
|
| Method Summary | |
|---|---|
protected void |
doStart()
Subclasses must implement this method with the start behavior. |
protected void |
doStop()
Subclasses must implement this method with the stop behavior. |
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information. |
protected TwitterOperations |
getTwitterOperations()
|
protected void |
onInit()
Subclasses may implement this for initialization logic. |
protected java.util.List<Tweet> |
pollForTweets(long sinceId)
Subclasses must implement this to return tweets. |
Message<?> |
receive()
Retrieve the next available message from this source. |
| Methods inherited from class org.springframework.integration.endpoint.AbstractEndpoint |
|---|
getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop |
| Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
|---|
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DirectMessageReceivingMessageSource(TwitterOperations twitter)
| Method Detail |
|---|
public java.lang.String getComponentType()
IntegrationObjectSupport
getComponentType in interface NamedComponentgetComponentType in class IntegrationObjectSupportprotected java.util.List<Tweet> pollForTweets(long sinceId)
protected TwitterOperations getTwitterOperations()
protected void onInit()
throws java.lang.Exception
IntegrationObjectSupport
onInit in class IntegrationObjectSupportjava.lang.Exceptionpublic Message<?> receive()
MessageSourcenull if no message is available.
receive in interface MessageSourceprotected void doStart()
AbstractEndpointAbstractEndpoint.lifecycleLock.
doStart in class AbstractEndpointprotected void doStop()
AbstractEndpointAbstractEndpoint.lifecycleLock.
doStop in class AbstractEndpoint
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||