Class SharedDestinationSession

java.lang.Object
com.yahoo.jdisc.AbstractResource
com.yahoo.messagebus.shared.SharedDestinationSession
All Implemented Interfaces:
com.yahoo.jdisc.SharedResource, com.yahoo.messagebus.Connectable, com.yahoo.messagebus.MessageHandler, ServerSession

public class SharedDestinationSession extends com.yahoo.jdisc.AbstractResource implements com.yahoo.messagebus.MessageHandler, ServerSession
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
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    protected void
     
    void
     
    com.yahoo.messagebus.MessageHandler
     
    void
    handleMessage(com.yahoo.messagebus.Message msg)
     
     
    void
    sendReply(com.yahoo.messagebus.Reply reply)
     
    com.yahoo.messagebus.DestinationSession
     
    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
  • Method Details

    • session

      public com.yahoo.messagebus.DestinationSession session()
    • 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
    • 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