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, setShouldTrack
getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, toString
public 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.context.NamedComponent
getComponentType
in class org.springframework.integration.context.IntegrationObjectSupport
protected void doStart()
doStart
in class org.springframework.integration.endpoint.MessageProducerSupport
protected void doStop()
doStop
in class org.springframework.integration.endpoint.MessageProducerSupport