public class UserStream extends AStream
AStream.IListen, AStream.OutageMAX_BUFFER| Constructor and Description |
|---|
UserStream(Twitter jtwit) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<java.lang.Number> |
getFriends() |
void |
setAllReplies(boolean allReplies) |
void |
setWithFollowings(boolean withFollowings) |
java.lang.String |
toString() |
addListener, addOutage, clear, close, connect, fillInOutages, finalize, getEvents, getForgotten, getOutages, getSystemEvents, getTweets, isAlive, isConnected, popEvents, popSystemEvents, popTweets, removeListener, setAutoReconnect, setPreviousCountpublic UserStream(Twitter jtwit)
public java.util.Collection<java.lang.Number> getFriends()
public void setWithFollowings(boolean withFollowings)
withFollowings - if true, pick up all tweets by the people the user follows.public void setAllReplies(boolean allReplies)
allReplies - By default @replies are only sent from mutual followings.
This enables all @replies by followings.
For example, if Alice follows Bob, but Alice doesn’t follow Carol, by default if Bob @replies Carol,
Alice does not see the tweet. The default behavior mimics twitter.com and api.twitter.com behavior.public java.lang.String toString()
toString in class java.lang.Object