Package com.yahoo.feedapi
Class SendSession
- java.lang.Object
-
- com.yahoo.feedapi.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)
-
-
-
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()
-
-