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

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

    Modifier and Type
    Method
    Description
    protected void
     
    void
    handleReply(com.yahoo.messagebus.Reply reply)
     
    com.yahoo.messagebus.Result
    sendMessage(com.yahoo.messagebus.Message msg)
     
    com.yahoo.messagebus.Result
    sendMessageBlocking(com.yahoo.messagebus.Message msg)
     
    com.yahoo.messagebus.SourceSession
     

    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

    • SharedSourceSession

      public SharedSourceSession(SharedMessageBus mbus, com.yahoo.messagebus.SourceSessionParams params)
  • Method Details

    • session

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

      public com.yahoo.messagebus.Result sendMessage(com.yahoo.messagebus.Message msg)
      Specified by:
      sendMessage in interface ClientSession
    • 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:
      handleReply in interface com.yahoo.messagebus.ReplyHandler
    • destroy

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