twitter4j
Class TwitterStreamFactory

java.lang.Object
  extended by twitter4j.TwitterFactoryBase<TwitterStream>
      extended by twitter4j.TwitterStreamFactory
All Implemented Interfaces:
java.io.Serializable

public class TwitterStreamFactory
extends TwitterFactoryBase<TwitterStream>

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
private  StatusListener listener
           
private static long serialVersionUID
           
 
Fields inherited from class twitter4j.TwitterFactoryBase
conf
 
Constructor Summary
TwitterStreamFactory()
          
TwitterStreamFactory(Configuration conf)
          
TwitterStreamFactory(StatusListener listener)
          
TwitterStreamFactory(java.lang.String configTreePath)
          
TwitterStreamFactory(java.lang.String configTreePath, StatusListener listener)
          
 
Method Summary
protected  TwitterStream getInstance(Configuration conf, Authorization auth)
          
 
Methods inherited from class twitter4j.TwitterFactoryBase
getInstance, getInstance, getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

listener

private StatusListener listener
Constructor Detail

TwitterStreamFactory

public TwitterStreamFactory()


TwitterStreamFactory

public TwitterStreamFactory(StatusListener listener)


TwitterStreamFactory

TwitterStreamFactory(Configuration conf)


TwitterStreamFactory

public TwitterStreamFactory(java.lang.String configTreePath)


TwitterStreamFactory

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

Method Detail

getInstance

protected TwitterStream getInstance(Configuration conf,
                                    Authorization auth)

Specified by:
getInstance in class TwitterFactoryBase<TwitterStream>