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

    Constructors
    Constructor
    Description
    SharedIntermediateSession(SharedMessageBus mbus, com.yahoo.messagebus.IntermediateSessionParams params)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    protected void
     
    void
     
    com.yahoo.messagebus.MessageHandler
     
    void
    handleMessage(com.yahoo.messagebus.Message msg)
     
    void
    handleReply(com.yahoo.messagebus.Reply reply)
     
     
    com.yahoo.messagebus.Result
    sendMessage(com.yahoo.messagebus.Message msg)
     
    void
    sendReply(com.yahoo.messagebus.Reply reply)
     
    com.yahoo.messagebus.IntermediateSession
     
    void
    setMessageHandler(com.yahoo.messagebus.MessageHandler msgHandler)
     

    Methods inherited from class com.yahoo.jdisc.AbstractResource

    currentState, refer, refer, release, retainCount

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.yahoo.jdisc.SharedResource

    refer, refer, release
  • Constructor Details

    • SharedIntermediateSession

      public SharedIntermediateSession(SharedMessageBus mbus, com.yahoo.messagebus.IntermediateSessionParams params)
  • Method Details

    • session

      public com.yahoo.messagebus.IntermediateSession session()
    • sendMessage

      public com.yahoo.messagebus.Result sendMessage(com.yahoo.messagebus.Message msg)
      Specified by:
      sendMessage in interface ClientSession
    • sendReply

      public void sendReply(com.yahoo.messagebus.Reply reply)
      Specified by:
      sendReply in interface ServerSession
    • getMessageHandler

      public com.yahoo.messagebus.MessageHandler getMessageHandler()
      Specified by:
      getMessageHandler in interface ServerSession
    • setMessageHandler

      public void setMessageHandler(com.yahoo.messagebus.MessageHandler msgHandler)
      Specified by:
      setMessageHandler in interface ServerSession
    • handleMessage

      public void handleMessage(com.yahoo.messagebus.Message msg)
      Specified by:
      handleMessage in interface com.yahoo.messagebus.MessageHandler
    • handleReply

      public void handleReply(com.yahoo.messagebus.Reply reply)
      Specified by:
      handleReply in interface com.yahoo.messagebus.ReplyHandler
    • connectionSpec

      public String connectionSpec()
      Specified by:
      connectionSpec in interface ServerSession
    • name

      public String name()
      Specified by:
      name in interface ServerSession
    • connect

      public void connect()
      Specified by:
      connect in interface com.yahoo.messagebus.Connectable
    • disconnect

      public void disconnect()
      Specified by:
      disconnect in interface com.yahoo.messagebus.Connectable
    • destroy

      protected void destroy()
      Overrides:
      destroy in class com.yahoo.jdisc.AbstractResource