twitter4j
Class AsyncTwitterFactory

java.lang.Object
  extended by twitter4j.TwitterFactoryBase<T>
      extended by twitter4j.TwitterFactoryOAuthSupportBase<AsyncTwitter>
          extended by 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

Field Summary
private  TwitterListener listener
           
private static long serialVersionUID
           
 
Fields inherited from class twitter4j.TwitterFactoryBase
conf
 
Constructor Summary
AsyncTwitterFactory()
          Creates a AsyncTwitterFactory with the root configuration, with no listener.
AsyncTwitterFactory(java.lang.String configTreePath, TwitterListener listener)
          Creates a AsyncTwitterFactory with a specified config tree, with given listener
AsyncTwitterFactory(TwitterListener listener)
          Creates a AsyncTwitterFactory with the root configuration, with given listener
 
Method Summary
protected  AsyncTwitter getInstance(Configuration conf, Authorization auth)
          
protected  AsyncTwitter getOAuthSupportInstance(Configuration conf, Authorization auth)
          
 
Methods inherited from class twitter4j.TwitterFactoryOAuthSupportBase
getOAuthAuthorizedInstance, getOAuthAuthorizedInstance, getOAuthAuthorizedInstance, getOAuthSupportInstance
 
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

listener

private TwitterListener listener

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

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 path
listener - listener
Method Detail

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>