public class TwitterStreamChannelAdapter
extends org.springframework.integration.endpoint.MessageProducerSupport
| Constructor and Description |
|---|
TwitterStreamChannelAdapter(org.springframework.social.twitter.api.impl.TwitterTemplate twitter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
java.lang.String |
getComponentType() |
void |
setConnectTimeout(int millis)
The connection timeout for making a connection to Twitter.
|
void |
setDelimited(boolean delimited)
Whether "delimited=length" shoud be added to the query.
|
void |
setFilterLevel(java.lang.String filterLevel)
One of "none", "low" or "medium"
|
void |
setFollow(java.lang.String follow)
Restrict the stream to a user or users.
|
void |
setLanguage(java.lang.String language)
Filter tweets by language or languages.
|
void |
setLocations(java.lang.String locations)
Bound the returned tweets by location(s).
|
void |
setReadTimeout(int millis)
The read timeout for the underlying URLConnection to the twitter stream.
|
void |
setStallWarnings(boolean stallWarnings)
Whether "stall_warnings=true" should be added to the query.
|
void |
setTrack(java.lang.String track)
Filter tweets by words or phrases.
|
onInit, sendMessage, setErrorChannel, setOutputChannel, setSendTimeout, setShouldTrackgetPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stopafterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, toStringpublic TwitterStreamChannelAdapter(org.springframework.social.twitter.api.impl.TwitterTemplate twitter)
public void setReadTimeout(int millis)
public void setConnectTimeout(int millis)
public void setDelimited(boolean delimited)
public void setStallWarnings(boolean stallWarnings)
public void setFilterLevel(java.lang.String filterLevel)
public void setLanguage(java.lang.String language)
public void setTrack(java.lang.String track)
public void setFollow(java.lang.String follow)
public void setLocations(java.lang.String locations)
public java.lang.String getComponentType()
getComponentType in interface org.springframework.integration.support.context.NamedComponentgetComponentType in class org.springframework.integration.context.IntegrationObjectSupportprotected void doStart()
doStart in class org.springframework.integration.endpoint.MessageProducerSupportprotected void doStop()
doStop in class org.springframework.integration.endpoint.MessageProducerSupport