class SiteStreamsImpl extends AbstractStreamImplementation implements StreamImplementation, StreamListener
AbstractStreamImplementation.StreamEvent| Modifier and Type | Field and Description |
|---|---|
private StreamController |
cs |
private static java.lang.ThreadLocal<java.lang.Integer> |
forUser |
(package private) SiteStreamsListener |
listener |
CONF, dispatcher, factory, logger| Constructor and Description |
|---|
SiteStreamsImpl(twitter4j.internal.async.Dispatcher dispatcher,
twitter4j.internal.http.HttpResponse response,
Configuration conf,
StreamController cs) |
SiteStreamsImpl(twitter4j.internal.async.Dispatcher dispatcher,
java.io.InputStream stream,
Configuration conf,
StreamController cs) |
| Modifier and Type | Method and Description |
|---|---|
void |
next(StreamListener[] listeners) |
protected void |
onBlock(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target) |
protected void |
onDelete(twitter4j.internal.org.json.JSONObject json) |
protected void |
onDirectMessage(twitter4j.internal.org.json.JSONObject json) |
void |
onException(java.lang.Exception ex) |
protected void |
onFavorite(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
twitter4j.internal.org.json.JSONObject targetObject) |
protected void |
onFollow(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target) |
protected void |
onFriends(twitter4j.internal.org.json.JSONObject json) |
protected void |
onStatus(twitter4j.internal.org.json.JSONObject json) |
protected void |
onUnblock(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target) |
protected void |
onUnfavorite(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
twitter4j.internal.org.json.JSONObject targetObject) |
protected void |
onUnfollow(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target) |
protected void |
onUserListCreation(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject userList) |
protected void |
onUserListDestroyed(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject userList) |
protected void |
onUserListMemberAddition(twitter4j.internal.org.json.JSONObject addedMember,
twitter4j.internal.org.json.JSONObject owner,
twitter4j.internal.org.json.JSONObject userList) |
protected void |
onUserListMemberDeletion(twitter4j.internal.org.json.JSONObject deletedMember,
twitter4j.internal.org.json.JSONObject owner,
twitter4j.internal.org.json.JSONObject userList) |
protected void |
onUserListSubscription(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject owner,
twitter4j.internal.org.json.JSONObject userList) |
protected void |
onUserListUnsubscription(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject owner,
twitter4j.internal.org.json.JSONObject userList) |
protected void |
onUserListUpdated(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject userList) |
protected void |
onUserUpdate(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target) |
protected java.lang.String |
parseLine(java.lang.String line) |
asDirectMessage, asFriendList, asStatus, asUser, asUserList, close, handleNextElement, onLimit, onRetweet, onScrubGeo, onSender, onStallWarningclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseSiteStreamsListener listener
private final StreamController cs
private static java.lang.ThreadLocal<java.lang.Integer> forUser
SiteStreamsImpl(twitter4j.internal.async.Dispatcher dispatcher,
java.io.InputStream stream,
Configuration conf,
StreamController cs)
throws java.io.IOException
java.io.IOExceptionSiteStreamsImpl(twitter4j.internal.async.Dispatcher dispatcher,
twitter4j.internal.http.HttpResponse response,
Configuration conf,
StreamController cs)
throws java.io.IOException
java.io.IOExceptionpublic void next(StreamListener[] listeners) throws TwitterException
next in interface StreamImplementationnext in class AbstractStreamImplementationTwitterExceptionprotected java.lang.String parseLine(java.lang.String line)
parseLine in class AbstractStreamImplementationprotected void onStatus(twitter4j.internal.org.json.JSONObject json)
throws TwitterException
onStatus in class AbstractStreamImplementationTwitterExceptionprotected void onDelete(twitter4j.internal.org.json.JSONObject json)
throws twitter4j.internal.org.json.JSONException
onDelete in class AbstractStreamImplementationtwitter4j.internal.org.json.JSONExceptionprotected void onDirectMessage(twitter4j.internal.org.json.JSONObject json)
throws TwitterException
onDirectMessage in class AbstractStreamImplementationTwitterExceptionprotected void onFriends(twitter4j.internal.org.json.JSONObject json)
throws TwitterException,
twitter4j.internal.org.json.JSONException
onFriends in class AbstractStreamImplementationTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onFavorite(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
twitter4j.internal.org.json.JSONObject targetObject)
throws TwitterException
onFavorite in class AbstractStreamImplementationTwitterExceptionprotected void onUnfavorite(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target,
twitter4j.internal.org.json.JSONObject targetObject)
throws TwitterException
onUnfavorite in class AbstractStreamImplementationTwitterExceptionprotected void onFollow(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target)
throws TwitterException
onFollow in class AbstractStreamImplementationTwitterExceptionprotected void onUnfollow(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target)
throws TwitterException
onUnfollow in class AbstractStreamImplementationTwitterExceptionprotected void onUserListMemberAddition(twitter4j.internal.org.json.JSONObject addedMember,
twitter4j.internal.org.json.JSONObject owner,
twitter4j.internal.org.json.JSONObject userList)
throws TwitterException,
twitter4j.internal.org.json.JSONException
onUserListMemberAddition in class AbstractStreamImplementationTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onUserListMemberDeletion(twitter4j.internal.org.json.JSONObject deletedMember,
twitter4j.internal.org.json.JSONObject owner,
twitter4j.internal.org.json.JSONObject userList)
throws TwitterException,
twitter4j.internal.org.json.JSONException
onUserListMemberDeletion in class AbstractStreamImplementationTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onUserListSubscription(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject owner,
twitter4j.internal.org.json.JSONObject userList)
throws TwitterException,
twitter4j.internal.org.json.JSONException
onUserListSubscription in class AbstractStreamImplementationTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onUserListUnsubscription(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject owner,
twitter4j.internal.org.json.JSONObject userList)
throws TwitterException,
twitter4j.internal.org.json.JSONException
onUserListUnsubscription in class AbstractStreamImplementationTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onUserListCreation(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject userList)
throws TwitterException,
twitter4j.internal.org.json.JSONException
onUserListCreation in class AbstractStreamImplementationTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onUserListUpdated(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject userList)
throws TwitterException,
twitter4j.internal.org.json.JSONException
onUserListUpdated in class AbstractStreamImplementationTwitterExceptiontwitter4j.internal.org.json.JSONExceptionprotected void onUserListDestroyed(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject userList)
throws TwitterException
onUserListDestroyed in class AbstractStreamImplementationTwitterExceptionprotected void onUserUpdate(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target)
throws TwitterException
onUserUpdate in class AbstractStreamImplementationTwitterExceptionprotected void onBlock(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target)
throws TwitterException
onBlock in class AbstractStreamImplementationTwitterExceptionprotected void onUnblock(twitter4j.internal.org.json.JSONObject source,
twitter4j.internal.org.json.JSONObject target)
throws TwitterException
onUnblock in class AbstractStreamImplementationTwitterExceptionpublic void onException(java.lang.Exception ex)
onException in interface StreamImplementationonException in interface StreamListeneronException in class AbstractStreamImplementation