public class TwitterUnfollowWriter extends TwitterWriter
DataEndpoint.StateEOFlastRecord, PRODUCT, PRODUCT_VERSION, VENDOR, XML_INPUT_FACTORY_KEYBUFFER_SIZE, captureElapsedTime, DEFAULT_READ_BUFFER_SIZEid, log, name, TIMESTAMP_FORMAT| Constructor and Description |
|---|
TwitterUnfollowWriter(String consumerKey,
String consumerSecret,
String screenNameField) |
TwitterUnfollowWriter(String consumerKey,
String consumerSecret,
String accessToken,
String accessTokenSecret,
String userScreenNameField) |
TwitterUnfollowWriter(TwitterProvider provider,
String userScreenNameField) |
| Modifier and Type | Method and Description |
|---|---|
DataException |
addExceptionProperties(DataException exception)
Adds this endpoint's current state to a
DataException. |
String |
getUserScreenNameField() |
boolean |
isAddUserToRecord() |
boolean |
isMuteUser() |
TwitterUnfollowWriter |
setAddUserToRecord(boolean addUserToRecord) |
TwitterUnfollowWriter |
setMuteUser(boolean muteUser) |
protected void |
writeImpl(Record record)
Overridden by subclasses to write the specified record to this
DataWriter. |
getApiLimitPolicy, getConverter, getEntityExpansionPolicy, getProvider, setApiLimitPolicy, setConverter, setEntityExpansionPolicyopenavailable, getNestedEndpoint, getNestedWriter, getRootEndpoint, getRootWriter, getWriter, writeclose, decrementRecordCount, enableJmx, getLastRecord, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, incrementRecordCount, isRecordCountBigInteger, resetRecordCount, toStringaddElapsedtime, assertClosed, assertNotOpened, assertOpened, finalize, getClosedOn, getDescription, getElapsedTime, getElapsedTimeAsString, getOpenedOn, getOpenElapsedTime, getOpenElapsedTimeAsString, getSelfTime, getSelfTimeAsString, getState, isCaptureElapsedTime, isClosed, isOpen, setCaptureElapsedTime, setDescriptionpublic TwitterUnfollowWriter(TwitterProvider provider, String userScreenNameField)
public TwitterUnfollowWriter(String consumerKey, String consumerSecret, String screenNameField)
public String getUserScreenNameField()
public boolean isAddUserToRecord()
public TwitterUnfollowWriter setAddUserToRecord(boolean addUserToRecord)
public boolean isMuteUser()
public TwitterUnfollowWriter setMuteUser(boolean muteUser)
protected void writeImpl(Record record) throws Throwable
DataWriterDataWriter.
Contract for subclasses (see also docs/authoring/DataWriter.md):
DataWriter.write(Record) is the template method
that wraps exceptions, increments the record count, and attaches the offending
record to thrown DataExceptions.DataEndpoint.incrementRecordCount() here; DataWriter.write(Record) already does.DataWriter.write(Record) wraps them via exception(throwable).setRecord(record).writeImpl in class DataWriterThrowablepublic DataException addExceptionProperties(DataException exception)
EndpointDataException. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.addExceptionProperties in class TwitterWriterCopyright (c) 2006-2026 North Concepts Inc. All Rights Reserved.