|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttwitter4j.AsyncTwitterFactory
public final class AsyncTwitterFactory
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.
| Constructor Summary | |
|---|---|
AsyncTwitterFactory()
Creates an AsyncTwitterFactory with the root configuration, with no listener. |
|
AsyncTwitterFactory(Configuration conf)
Creates an AsyncTwitterFactory with the given configuration. |
|
AsyncTwitterFactory(String configTreePath)
Creates a AsyncTwitterFactory with the specified config tree, with given listener |
|
| Method Summary | |
|---|---|
AsyncTwitter |
getInstance()
Returns an instance associated with the configuration bound to this factory. |
AsyncTwitter |
getInstance(AccessToken accessToken)
Returns a OAuth Authenticated instance. consumer key and consumer Secret must be provided by twitter4j.properties, or system properties. Unlike OAuthSupport.setOAuthAccessToken(twitter4j.auth.AccessToken), this factory method potentially returns a cached instance. |
AsyncTwitter |
getInstance(Authorization auth)
|
static AsyncTwitter |
getSingleton()
Returns default singleton AsyncTwitter instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsyncTwitterFactory()
public AsyncTwitterFactory(Configuration conf)
conf - the configuration to usepublic AsyncTwitterFactory(String configTreePath)
configTreePath - the path| Method Detail |
|---|
public AsyncTwitter getInstance()
public AsyncTwitter getInstance(AccessToken accessToken)
OAuthSupport.setOAuthAccessToken(twitter4j.auth.AccessToken), this factory method potentially returns a cached instance.
accessToken - access token
public AsyncTwitter getInstance(Authorization auth)
auth - authorization
public static AsyncTwitter getSingleton()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||