public abstract class TwitterReader extends IntegrationReader
DataEndpoint.State
Modifier and Type | Field and Description |
---|---|
protected static Record |
EOF |
fieldLineage, recordLineage
lastRecord, PRODUCT, PRODUCT_VERSION, VENDOR, XML_INPUT_FACTORY_KEY
BUFFER_SIZE, captureElapsedTime, DEFAULT_READ_BUFFER_SIZE
id, log, name, TIMESTAMP_FORMAT
Constructor and Description |
---|
TwitterReader(String rateLimitResource,
String rateLimitKey,
String consumerKey,
String consumerSecret) |
TwitterReader(String rateLimitResource,
String rateLimitKey,
String consumerKey,
String consumerSecret,
String accessToken,
String accessTokenSecret) |
TwitterReader(String rateLimitResource,
String rateLimitKey,
TwitterProvider provider) |
Modifier and Type | Method and Description |
---|---|
DataException |
addExceptionProperties(DataException exception)
Adds this endpoint's current state to a
DataException . |
IApiLimitPolicy |
getApiLimitPolicy() |
ITwitterConverter |
getConverter() |
IEntityExpansionPolicy |
getEntityExpansionPolicy() |
TwitterProvider |
getProvider() |
TwitterRateLimit |
getRateLimit() |
TwitterRateLimit |
getRateLimit(boolean autoReload) |
boolean |
isRateLimitExceeded() |
protected boolean |
onRateLimitExceeded() |
void |
open()
Makes this endpoint ready for reading or writing.
|
void |
reloadRateLimit() |
TwitterReader |
setApiLimitPolicy(IApiLimitPolicy apiLimitPolicy) |
TwitterReader |
setConverter(ITwitterConverter converter) |
TwitterReader |
setEntityExpansionPolicy(IEntityExpansionPolicy entityExpansionPolicy) |
TwitterReader |
setRateLimit(RateLimitStatus rateLimitStatus) |
TwitterReader |
setRateLimit(TwitterResponse response) |
protected TwitterReader |
setRateLimitExceeded(boolean rateLimitExceeded) |
addLineage, available, getBufferSize, getNestedEndpoint, getNestedReader, getRootEndpoint, getRootReader, isExhausted, isLineageSupported, isSaveLineage, peek, pop, push, read, readImpl, setSaveLineage, skip
close, decrementRecordCount, enableJmx, getLastRecord, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, incrementRecordCount, isRecordCountBigInteger, resetRecordCount, toString
addElapsedtime, assertClosed, assertNotOpened, assertOpened, finalize, getClosedOn, getDescription, getElapsedTime, getElapsedTimeAsString, getOpenedOn, getOpenElapsedTime, getOpenElapsedTimeAsString, getSelfTime, getSelfTimeAsString, getState, isCaptureElapsedTime, isClosed, isOpen, setCaptureElapsedTime, setDescription
protected static final Record EOF
public TwitterReader(String rateLimitResource, String rateLimitKey, TwitterProvider provider)
public TwitterReader(String rateLimitResource, String rateLimitKey, String consumerKey, String consumerSecret)
public void open() throws DataException
DataEndpoint
open
in class IntegrationReader
DataException
public TwitterProvider getProvider()
public IApiLimitPolicy getApiLimitPolicy()
public TwitterReader setApiLimitPolicy(IApiLimitPolicy apiLimitPolicy)
public final TwitterRateLimit getRateLimit()
protected boolean onRateLimitExceeded()
protected TwitterReader setRateLimitExceeded(boolean rateLimitExceeded)
public boolean isRateLimitExceeded()
public final TwitterRateLimit getRateLimit(boolean autoReload)
public TwitterReader setRateLimit(TwitterResponse response)
public TwitterReader setRateLimit(RateLimitStatus rateLimitStatus)
public final void reloadRateLimit()
public IEntityExpansionPolicy getEntityExpansionPolicy()
public TwitterReader setEntityExpansionPolicy(IEntityExpansionPolicy entityExpansionPolicy)
public ITwitterConverter getConverter()
public TwitterReader setConverter(ITwitterConverter converter)
public DataException addExceptionProperties(DataException exception)
Endpoint
DataException
. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.addExceptionProperties
in class DataReader
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.