Class SingleSender

  • All Implemented Interfaces:
    SimpleFeedAccess

    public class SingleSender
    extends java.lang.Object
    implements SimpleFeedAccess
    Simplifies sending messages belonging to a single result callback.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addMessageProcessor​(MessageProcessor processor)  
      void close()  
      void done()  
      boolean isAborted()  
      void put​(com.yahoo.document.Document doc)  
      void put​(com.yahoo.document.Document doc, com.yahoo.document.TestAndSetCondition condition)  
      void remove​(com.yahoo.document.DocumentId docId)  
      void remove​(com.yahoo.document.DocumentId docId, com.yahoo.document.TestAndSetCondition condition)  
      void send​(com.yahoo.messagebus.Message m)
      Sends the given message.
      void update​(com.yahoo.document.DocumentUpdate update)  
      void update​(com.yahoo.document.DocumentUpdate update, com.yahoo.document.TestAndSetCondition condition)  
      boolean waitForPending​(long timeoutMs)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • put

        public void put​(com.yahoo.document.Document doc)
        Specified by:
        put in interface SimpleFeedAccess
      • remove

        public void remove​(com.yahoo.document.DocumentId docId)
        Specified by:
        remove in interface SimpleFeedAccess
      • update

        public void update​(com.yahoo.document.DocumentUpdate update)
        Specified by:
        update in interface SimpleFeedAccess
      • put

        public void put​(com.yahoo.document.Document doc,
                        com.yahoo.document.TestAndSetCondition condition)
        Specified by:
        put in interface SimpleFeedAccess
      • remove

        public void remove​(com.yahoo.document.DocumentId docId,
                           com.yahoo.document.TestAndSetCondition condition)
        Specified by:
        remove in interface SimpleFeedAccess
      • update

        public void update​(com.yahoo.document.DocumentUpdate update,
                           com.yahoo.document.TestAndSetCondition condition)
        Specified by:
        update in interface SimpleFeedAccess
      • addMessageProcessor

        public void addMessageProcessor​(MessageProcessor processor)
      • 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)