Class SendSession


  • public abstract class SendSession
    extends java.lang.Object
    Wrapper class to send Messages. Used instead of using a MessageBus session directly so that unit tests can be more easily made.
    • Constructor Summary

      Constructors 
      Constructor Description
      SendSession()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract void close()  
      protected abstract com.yahoo.messagebus.Result onSend​(com.yahoo.messagebus.Message m, boolean blockIfQueueIsFull)  
      com.yahoo.messagebus.Result send​(com.yahoo.messagebus.Message m, boolean blockIfQueueIsFull)  
      • Methods inherited from class java.lang.Object

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

      • SendSession

        public SendSession()
    • Method Detail

      • onSend

        protected abstract com.yahoo.messagebus.Result onSend​(com.yahoo.messagebus.Message m,
                                                              boolean blockIfQueueIsFull)
                                                       throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • send

        public com.yahoo.messagebus.Result send​(com.yahoo.messagebus.Message m,
                                                boolean blockIfQueueIsFull)
                                         throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • close

        public abstract void close()