|
|||||||||
| 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.
| Field Summary | |
|---|---|
private Configuration |
conf
|
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
AsyncTwitterFactory()
Creates an AsyncTwitterFactory with the root configuration, with no listener. |
|
AsyncTwitterFactory(Configuration conf)
Creates an AsyncTwitterFactory with the given configuration. |
|
AsyncTwitterFactory(java.lang.String configTreePath)
Creates a AsyncTwitterFactory with the specified config tree, with given listener |
|
| Method Summary | |
|---|---|
AsyncTwitter |
getInstance()
Returns a default singleton instance. |
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Configuration conf
private static final long serialVersionUID
| Constructor Detail |
|---|
public AsyncTwitterFactory()
public AsyncTwitterFactory(Configuration conf)
conf - the configuration to usepublic AsyncTwitterFactory(java.lang.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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||