|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttwitter4j.TwitterStreamFactory
public final class TwitterStreamFactory
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.
| Field Summary | |
|---|---|
private Configuration |
conf
|
private StatusListener |
listener
|
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
TwitterStreamFactory()
Creates a TwitterStreamFactory with the root configuration. |
|
TwitterStreamFactory(Configuration conf)
Creates a TwitterStreamFactory with the given configuration. |
|
TwitterStreamFactory(Configuration conf,
StatusListener listener)
Creates a TwitterStreamFactory with the specified config and a listener. |
|
TwitterStreamFactory(StatusListener listener)
Creates a TwitterStreamFactory with the root configuration and a specified status listener. |
|
TwitterStreamFactory(java.lang.String configTreePath)
Creates a TwitterStreamFactory with a specified config tree. |
|
TwitterStreamFactory(java.lang.String configTreePath,
StatusListener listener)
Creates a TwitterStreamFactory with a specified config tree and a listener. |
|
| Method Summary | |
|---|---|
TwitterStream |
getInstance()
Returns an instance. |
TwitterStream |
getInstance(Authorization auth)
Returns a instance. |
private TwitterStream |
getInstance(Configuration conf)
|
private TwitterStream |
getInstance(Configuration conf,
Authorization auth)
|
TwitterStream |
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 |
|---|
private static final long serialVersionUID
private final StatusListener listener
private final Configuration conf
| Constructor Detail |
|---|
public TwitterStreamFactory()
public TwitterStreamFactory(Configuration conf)
conf - the configuration to usepublic TwitterStreamFactory(StatusListener listener)
listener - the listenerpublic TwitterStreamFactory(java.lang.String configTreePath)
configTreePath - the path
public TwitterStreamFactory(java.lang.String configTreePath,
StatusListener listener)
configTreePath - the pathlistener - the listener
public TwitterStreamFactory(Configuration conf,
StatusListener listener)
conf - the configuration to uselistener - an optional status listener| Method Detail |
|---|
public TwitterStream getInstance()
public TwitterStream getInstance(java.lang.String screenName,
java.lang.String password)
screenName - screen namepassword - password
public TwitterStream getInstance(Authorization auth)
private TwitterStream getInstance(Configuration conf,
Authorization auth)
private TwitterStream getInstance(Configuration conf)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||