winterwell.jtwitter
Enum TwitterStream.KMethod

java.lang.Object
  extended by java.lang.Enum<TwitterStream.KMethod>
      extended by winterwell.jtwitter.TwitterStream.KMethod
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TwitterStream.KMethod>
Enclosing class:
TwitterStream

public static enum TwitterStream.KMethod
extends java.lang.Enum<TwitterStream.KMethod>


Enum Constant Summary
filter
          Follow hashtags, users or regions
firehose
          Everything! Requires special access privileges!
links
          Requires special access privileges!
retweet
          New-style retweets.
sample
          Spritzer or Garden-hose: A sample of tweets, suitable for trend analysis.
 
Method Summary
static TwitterStream.KMethod valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TwitterStream.KMethod[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

filter

public static final TwitterStream.KMethod filter
Follow hashtags, users or regions


firehose

public static final TwitterStream.KMethod firehose
Everything! Requires special access privileges!


links

public static final TwitterStream.KMethod links
Requires special access privileges!


retweet

public static final TwitterStream.KMethod retweet
New-style retweets. Requires special access privileges! From dev.twitter.com: Few applications require this level of access. Creative use of a combination of other resources and various access levels can satisfy nearly every application use case.


sample

public static final TwitterStream.KMethod sample
Spritzer or Garden-hose: A sample of tweets, suitable for trend analysis.
The default level (spritzer) is roughly 1% of all public tweets.
The upgraded level (garden-hose - apply to Twitter for this) is 10%.
In both cases the algorithm is based on the tweet-id modulo 100.

Method Detail

values

public static TwitterStream.KMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TwitterStream.KMethod c : TwitterStream.KMethod.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TwitterStream.KMethod valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null