winterwell.jtwitter
Class UserStream

java.lang.Object
  extended by winterwell.jtwitter.AStream
      extended by winterwell.jtwitter.UserStream
All Implemented Interfaces:
java.io.Closeable

Deprecated. There are bugs on Twitter's end -- the messages returned by this stream may not include all the messages to a user. The results vary from user to user!

Connect to the streaming API.

This class picks up the following tweets:
- Tweets by you
- Tweets that mention you
- Tweets by people you follow IF setWithFollowings(boolean) is true.
- Retweets of your messages.
- Retweets made by you.

Duplicate messages may be delivered when reconnecting to the Streaming API. TODO test out url-signing over header-signing -- c.f. http://groups .google.com/group/twitter-development-talk/browse_thread /thread/420c4b555198aa6c/f85e2507b7f65e39?pli=1 "figured it out on my own. must use HTTP GET with OAuth params passed in URI string. Not mentioned in the documentation. Wasted many hours figuring out this stuff would be clarified if someone updated the docs and made some examples."

@Deprecated
public class UserStream
extends AStream


Nested Class Summary
 
Nested classes/interfaces inherited from class winterwell.jtwitter.AStream
AStream.IListen, AStream.Outage
 
Field Summary
 
Fields inherited from class winterwell.jtwitter.AStream
MAX_BUFFER
 
Constructor Summary
UserStream(Twitter jtwit)
          Deprecated.  
 
Method Summary
 java.util.Collection<java.lang.Long> getFriends()
          Deprecated.  
 void setWithFollowings(boolean withFollowings)
          Deprecated.  
 
Methods inherited from class winterwell.jtwitter.AStream
addListener, addOutage, clear, close, connect, fillInOutages, finalize, getEvents, getForgotten, getOutages, getSystemEvents, getTweets, isAlive, isConnected, popEvents, popSystemEvents, popTweets, removeListener, setAutoReconnect, setPreviousCount
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserStream

public UserStream(Twitter jtwit)
Deprecated. 
Method Detail

getFriends

public java.util.Collection<java.lang.Long> getFriends()
Deprecated. 
Returns:
people who the user follows -- at the point when the stream last connected.

setWithFollowings

public void setWithFollowings(boolean withFollowings)
Deprecated. 
Parameters:
withFollowings - if true, pick up all tweets by the people the user follows.