Package com.yahoo.feedapi
Interface SessionFactory
-
- All Known Implementing Classes:
DummySessionFactory
,MessageBusSessionFactory
public interface SessionFactory
Wraps the creation of messagebus source sessions to allow for unit testing of the components without involving messagebus itself.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SendSession
createSendSession(com.yahoo.messagebus.ReplyHandler handler)
Creates a messagebus session for sending regular messages.
-
-
-
Method Detail
-
createSendSession
SendSession createSendSession(com.yahoo.messagebus.ReplyHandler handler)
Creates a messagebus session for sending regular messages.- Parameters:
handler
- A replyhandler to callback when receiving replies from messagebus- Returns:
- The session to use for sending messages.
-
-