twitter4j
Class TwitterStreamFactory

java.lang.Object
  extended by twitter4j.TwitterStreamFactory
All Implemented Interfaces:
java.io.Serializable

public class TwitterStreamFactory
extends java.lang.Object

A factory class for TwitterFactory.
An instance of this class is completely thread safe and can be re-used and used concurrently.
Note that TwitterStream is NOT compatible with Google App Engine as GAE is not capable of handling requests longer than 30 seconds.

Since:
Twitter4J 2.1.0
Author:
Yusuke Yamamoto - yusuke at mac.com
See Also:
Serialized Form

Field Summary
protected  twitter4j.conf.Configuration conf
           
 
Constructor Summary
TwitterStreamFactory()
          
TwitterStreamFactory(StatusListener listener)
          
TwitterStreamFactory(java.lang.String configTreePath)
          
TwitterStreamFactory(java.lang.String configTreePath, StatusListener listener)
          
 
Method Summary
 T getInstance()
          Returns a instance.
 T getInstance(twitter4j.http.Authorization auth)
           
protected  TwitterStream getInstance(twitter4j.conf.Configuration conf, twitter4j.http.Authorization auth)
          
 T getInstance(java.lang.String screenName, java.lang.String password)
          Returns a Basic Authenticated instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conf

protected final twitter4j.conf.Configuration conf
Constructor Detail

TwitterStreamFactory

public TwitterStreamFactory()


TwitterStreamFactory

public TwitterStreamFactory(StatusListener listener)


TwitterStreamFactory

public TwitterStreamFactory(java.lang.String configTreePath)


TwitterStreamFactory

public TwitterStreamFactory(java.lang.String configTreePath,
                            StatusListener listener)

Method Detail

getInstance

protected TwitterStream getInstance(twitter4j.conf.Configuration conf,
                                    twitter4j.http.Authorization auth)


getInstance

public T getInstance()
Returns a instance.

Returns:
default singleton instance

getInstance

public T getInstance(twitter4j.http.Authorization auth)

getInstance

public T getInstance(java.lang.String screenName,
                     java.lang.String password)
Returns a Basic Authenticated instance.

Parameters:
screenName - screen name
password - password
Returns:
an instance


Copyright © 2010. All Rights Reserved.