|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TwitterStream
| Method Summary | |
|---|---|
void |
addConnectionLifeCycleListener(ConnectionLifeCycleListener listener)
Adds a ConnectionLifeCycleListener |
void |
addListener(SiteStreamsListener listener)
|
void |
addListener(StatusListener listener)
|
void |
addListener(UserStreamListener listener)
|
void |
cleanUp()
shutdown internal stream consuming thread |
void |
filter(FilterQuery query)
Start consuming public statuses that match one or more filter predicates. |
void |
firehose(int count)
Starts listening on all public statuses. |
StatusStream |
getFilterStream(FilterQuery query)
Returns public statuses that match one or more filter predicates. |
StatusStream |
getFirehoseStream(int count)
Returns a status stream of all public statuses. |
StatusStream |
getLinksStream(int count)
Returns a status stream of all public statuses containing links. |
StatusStream |
getRetweetStream()
Returns a stream of all retweets. |
StatusStream |
getSampleStream()
Returns a stream of random sample of all public statuses. |
UserStream |
getUserStream()
User Streams provides real-time updates of all data needed to update a desktop application display. |
UserStream |
getUserStream(java.lang.String[] track)
User Streams provides real-time updates of all data needed to update a desktop application display. |
void |
links(int count)
Starts listening on all public statuses containing links. |
void |
retweet()
Starts listening on all retweets. |
void |
sample()
Starts listening on random sample of all public statuses. |
void |
shutdown()
Shuts down internal dispatcher thread shared by all TwitterStream instances. |
void |
site(boolean withFollowings,
long[] follow)
Site Streams, a new feature on the Streaming API, is now available for beta testing. |
void |
user()
User Streams provides real-time updates of all data needed to update a desktop application display. |
void |
user(java.lang.String[] track)
User Streams provides real-time updates of all data needed to update a desktop application display. |
| Methods inherited from interface twitter4j.auth.OAuthSupport |
|---|
getOAuthAccessToken, getOAuthAccessToken, getOAuthAccessToken, getOAuthAccessToken, getOAuthAccessToken, getOAuthRequestToken, getOAuthRequestToken, getOAuthRequestToken, setOAuthAccessToken, setOAuthConsumer |
| Methods inherited from interface twitter4j.TwitterBase |
|---|
addRateLimitStatusListener, getAuthorization, getConfiguration, getId, getScreenName |
| Method Detail |
|---|
void addConnectionLifeCycleListener(ConnectionLifeCycleListener listener)
listener - listener to be addedvoid addListener(UserStreamListener listener)
listener - listener to addvoid addListener(StatusListener listener)
listener - listener to addvoid addListener(SiteStreamsListener listener)
listener - listener to addvoid firehose(int count)
count - Indicates the number of previous statuses to stream before transitioning to the live stream.StatusStream,
Streaming API: Methods statuses/firehose
StatusStream getFirehoseStream(int count)
throws TwitterException
count - Indicates the number of previous statuses to stream before transitioning to the live stream.
TwitterException - when Twitter service or network is unavailableStatusStream,
Streaming API: Methods statuses/firehosevoid links(int count)
count - Indicates the number of previous statuses to stream before transitioning to the live stream.StatusStream,
Streaming API: Methods statuses/links
StatusStream getLinksStream(int count)
throws TwitterException
count - Indicates the number of previous statuses to stream before transitioning to the live stream.
TwitterException - when Twitter service or network is unavailableStatusStream,
Streaming API: Methods statuses/linksvoid retweet()
StatusStream,
Streaming API: Methods statuses/retweet
StatusStream getRetweetStream()
throws TwitterException
TwitterException - when Twitter service or network is unavailableStatusStream,
Streaming API: Methods statuses/retweetvoid sample()
StatusStream,
Streaming API: Methods statuses/sample
StatusStream getSampleStream()
throws TwitterException
TwitterException - when Twitter service or network is unavailableStatusStream,
Streaming API: Methods statuses/samplevoid user()
java.lang.IllegalStateException - when non-UserStreamListener is set, or no listener is setvoid user(java.lang.String[] track)
track - keywords to track
java.lang.IllegalStateException - when non-UserStreamListener is set, or no listener is set
UserStream getUserStream()
throws TwitterException
TwitterException - when Twitter service or network is unavailable
UserStream getUserStream(java.lang.String[] track)
throws TwitterException
track - keywords to track
TwitterException - when Twitter service or network is unavailable
void site(boolean withFollowings,
long[] follow)
withFollowings - whether to receive status updates from people followingfollow - an array of users to include in the streamvoid filter(FilterQuery query)
query - Filter queryStatusStream,
Streaming API: Methods statuses/filter
StatusStream getFilterStream(FilterQuery query)
throws TwitterException
query - Filter query
TwitterException - when Twitter service or network is unavailableStatusStream,
Twitter API Wiki / Streaming API Documentation - filtervoid cleanUp()
void shutdown()
shutdown in interface TwitterBase
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||