twitter4j
Class AsyncTwitterFactory
java.lang.Object
twitter4j.TwitterFactoryBase<T>
twitter4j.TwitterFactoryOAuthSupportBase<AsyncTwitter>
twitter4j.AsyncTwitterFactory
- All Implemented Interfaces:
- java.io.Serializable
public final class AsyncTwitterFactory
- extends TwitterFactoryOAuthSupportBase<AsyncTwitter>
- implements java.io.Serializable
A factory class for AsyncTwitter.
An instance of this class is completely thread safe and can be re-used and used concurrently.
Note that currently AsyncTwitter is NOT compatible with Google App Engine as it is maintaining threads internally.
- Since:
- Twitter4J 2.1.0
- Author:
- Yusuke Yamamoto - yusuke at mac.com
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listener
private TwitterListener listener
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
AsyncTwitterFactory
public AsyncTwitterFactory()
- Creates a AsyncTwitterFactory with the root configuration, with no listener. AsyncTwitter instances will not perform callbacks when using this constructor.
AsyncTwitterFactory
public AsyncTwitterFactory(TwitterListener listener)
- Creates a AsyncTwitterFactory with the root configuration, with given listener
- Parameters:
listener
- listener
AsyncTwitterFactory
public AsyncTwitterFactory(java.lang.String configTreePath,
TwitterListener listener)
- Creates a AsyncTwitterFactory with a specified config tree, with given listener
- Parameters:
configTreePath
- the pathlistener
- listener
getInstance
protected AsyncTwitter getInstance(Configuration conf,
Authorization auth)
-
- Specified by:
getInstance
in class TwitterFactoryOAuthSupportBase<AsyncTwitter>
getOAuthSupportInstance
protected AsyncTwitter getOAuthSupportInstance(Configuration conf,
Authorization auth)
-
- Specified by:
getOAuthSupportInstance
in class TwitterFactoryOAuthSupportBase<AsyncTwitter>