Package com.yahoo.feedapi
Class SingleSender
java.lang.Object
com.yahoo.feedapi.SingleSender
- All Implemented Interfaces:
SimpleFeedAccess
Simplifies sending messages belonging to a single result callback.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessageProcessor(MessageProcessor processor) voidclose()voiddone()booleanvoidput(com.yahoo.document.DocumentPut put) voidremove(com.yahoo.document.DocumentRemove remove) voidsend(com.yahoo.messagebus.Message m) Sends the given message.voidupdate(com.yahoo.document.DocumentUpdate update) booleanwaitForPending(long timeoutMs)
-
Constructor Details
-
Method Details
-
put
public void put(com.yahoo.document.DocumentPut put) - Specified by:
putin interfaceSimpleFeedAccess
-
remove
public void remove(com.yahoo.document.DocumentRemove remove) - Specified by:
removein interfaceSimpleFeedAccess
-
update
public void update(com.yahoo.document.DocumentUpdate update) - Specified by:
updatein interfaceSimpleFeedAccess
-
isAborted
public boolean isAborted()- Specified by:
isAbortedin interfaceSimpleFeedAccess
-
addMessageProcessor
-
send
public void send(com.yahoo.messagebus.Message m) Sends the given message.- Parameters:
m- The message to send
-
done
public void done() -
waitForPending
public boolean waitForPending(long timeoutMs) -
close
public void close()- Specified by:
closein interfaceSimpleFeedAccess
-