Package com.yahoo.messagebus.shared
Class SharedIntermediateSession
java.lang.Object
com.yahoo.jdisc.AbstractResource
com.yahoo.messagebus.shared.SharedIntermediateSession
- All Implemented Interfaces:
com.yahoo.jdisc.SharedResource,com.yahoo.messagebus.Connectable,com.yahoo.messagebus.MessageHandler,com.yahoo.messagebus.ReplyHandler,ClientSession,ServerSession
public final class SharedIntermediateSession
extends com.yahoo.jdisc.AbstractResource
implements ClientSession, ServerSession, com.yahoo.messagebus.MessageHandler, 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
ConstructorsConstructorDescriptionSharedIntermediateSession(SharedMessageBus mbus, com.yahoo.messagebus.IntermediateSessionParams params) -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()protected voiddestroy()voidcom.yahoo.messagebus.MessageHandlervoidhandleMessage(com.yahoo.messagebus.Message msg) voidhandleReply(com.yahoo.messagebus.Reply reply) name()com.yahoo.messagebus.ResultsendMessage(com.yahoo.messagebus.Message msg) voidsendReply(com.yahoo.messagebus.Reply reply) com.yahoo.messagebus.IntermediateSessionsession()voidsetMessageHandler(com.yahoo.messagebus.MessageHandler msgHandler) 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.IntermediateSession session() -
sendMessage
public com.yahoo.messagebus.Result sendMessage(com.yahoo.messagebus.Message msg) - Specified by:
sendMessagein interfaceClientSession
-
sendReply
public void sendReply(com.yahoo.messagebus.Reply reply) - Specified by:
sendReplyin interfaceServerSession
-
getMessageHandler
public com.yahoo.messagebus.MessageHandler getMessageHandler()- Specified by:
getMessageHandlerin interfaceServerSession
-
setMessageHandler
public void setMessageHandler(com.yahoo.messagebus.MessageHandler msgHandler) - Specified by:
setMessageHandlerin interfaceServerSession
-
handleMessage
public void handleMessage(com.yahoo.messagebus.Message msg) - Specified by:
handleMessagein interfacecom.yahoo.messagebus.MessageHandler
-
handleReply
public void handleReply(com.yahoo.messagebus.Reply reply) - Specified by:
handleReplyin interfacecom.yahoo.messagebus.ReplyHandler
-
connectionSpec
- Specified by:
connectionSpecin interfaceServerSession
-
name
- Specified by:
namein interfaceServerSession
-
connect
public void connect()- Specified by:
connectin interfacecom.yahoo.messagebus.Connectable
-
disconnect
public void disconnect()- Specified by:
disconnectin interfacecom.yahoo.messagebus.Connectable
-
destroy
protected void destroy()- Overrides:
destroyin classcom.yahoo.jdisc.AbstractResource
-