Package com.yahoo.messagebus.shared
Class SharedSourceSession
java.lang.Object
com.yahoo.jdisc.AbstractResource
com.yahoo.messagebus.shared.SharedSourceSession
- All Implemented Interfaces:
com.yahoo.jdisc.SharedResource,com.yahoo.messagebus.ReplyHandler,ClientSession
public final class SharedSourceSession
extends com.yahoo.jdisc.AbstractResource
implements ClientSession, com.yahoo.messagebus.ReplyHandler
- Author:
- Simon Thoresen Hult
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.yahoo.jdisc.SharedResource
com.yahoo.jdisc.SharedResource.Debug -
Field Summary
Fields inherited from interface com.yahoo.jdisc.SharedResource
DEBUG, SYSTEM_PROPERTY_NAME_DEBUG -
Constructor Summary
ConstructorsConstructorDescriptionSharedSourceSession(SharedMessageBus mbus, com.yahoo.messagebus.SourceSessionParams params) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddestroy()voidhandleReply(com.yahoo.messagebus.Reply reply) com.yahoo.messagebus.ResultsendMessage(com.yahoo.messagebus.Message msg) com.yahoo.messagebus.ResultsendMessageBlocking(com.yahoo.messagebus.Message msg) com.yahoo.messagebus.SourceSessionsession()Methods inherited from class com.yahoo.jdisc.AbstractResource
currentState, refer, refer, release, retainCountMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.yahoo.jdisc.SharedResource
refer, refer, release
-
Constructor Details
-
Method Details
-
session
public com.yahoo.messagebus.SourceSession session() -
sendMessage
public com.yahoo.messagebus.Result sendMessage(com.yahoo.messagebus.Message msg) - Specified by:
sendMessagein interfaceClientSession
-
sendMessageBlocking
public com.yahoo.messagebus.Result sendMessageBlocking(com.yahoo.messagebus.Message msg) throws InterruptedException - Throws:
InterruptedException
-
handleReply
public void handleReply(com.yahoo.messagebus.Reply reply) - Specified by:
handleReplyin interfacecom.yahoo.messagebus.ReplyHandler
-
destroy
protected void destroy()- Overrides:
destroyin classcom.yahoo.jdisc.AbstractResource
-