public class TwitterStreamChannelAdapter extends AbstractTwitterInboundChannelAdapter
Modifier and Type | Class and Description |
---|---|
static class |
TwitterStreamChannelAdapter.FilterLevel |
AbstractTwitterInboundChannelAdapter.StreamReadingTask
Constructor and Description |
---|
TwitterStreamChannelAdapter(org.springframework.social.twitter.api.impl.TwitterTemplate twitter) |
Modifier and Type | Method and Description |
---|---|
protected java.net.URI |
buildUri() |
protected void |
doSendLine(java.lang.String line) |
java.lang.String |
getComponentType() |
void |
setDelimited(boolean delimited)
Whether "delimited=length" shoud be added to the query.
|
void |
setFilterLevel(TwitterStreamChannelAdapter.FilterLevel filterLevel)
One of "none", "low" or "medium"
|
void |
setFollow(java.lang.String follow)
Restrict the stream to a user or users.
|
void |
setLocations(java.lang.String locations)
Bound the returned tweets by location(s).
|
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.
|
doStart, doStop, getLanguage, onInit, setConnectTimeout, setLanguage, setReadTimeout, wait
sendMessage, setErrorChannel, setOutputChannel, setSendTimeout, setShouldTrack
getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, toString
public TwitterStreamChannelAdapter(org.springframework.social.twitter.api.impl.TwitterTemplate twitter)
public void setDelimited(boolean delimited)
public void setStallWarnings(boolean stallWarnings)
public void setFilterLevel(TwitterStreamChannelAdapter.FilterLevel filterLevel)
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.NamedComponent
getComponentType
in class org.springframework.integration.context.IntegrationObjectSupport
protected java.net.URI buildUri()
buildUri
in class AbstractTwitterInboundChannelAdapter
protected void doSendLine(java.lang.String line)
doSendLine
in class AbstractTwitterInboundChannelAdapter