Class SessionCache

java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.container.jdisc.messagebus.SessionCache
All Implemented Interfaces:
com.yahoo.component.Component, com.yahoo.component.Deconstructable, Comparable<com.yahoo.component.Component>

public final class SessionCache extends com.yahoo.component.AbstractComponent
Class to encapsulate access to slobrok sessions.
Author:
Steinar Knutsen, Einar Rosenvinge
  • Field Summary

    Fields inherited from class com.yahoo.component.AbstractComponent

    isDeconstructable
  • Constructor Summary

    Constructors
    Constructor
    Description
    SessionCache(NetworkMultiplexerProvider nets, ContainerMbusConfig containerMbusConfig, com.yahoo.document.DocumentTypeManager documentTypeManager, com.yahoo.messagebus.MessagebusConfig messagebusConfig)
     
    SessionCache(Supplier<com.yahoo.messagebus.network.NetworkMultiplexer> net, ContainerMbusConfig containerMbusConfig, com.yahoo.document.DocumentTypeManager documentTypeManager, com.yahoo.messagebus.MessagebusConfig messagebusConfig)
     
    SessionCache(Supplier<com.yahoo.messagebus.network.NetworkMultiplexer> net, ContainerMbusConfig containerMbusConfig, com.yahoo.messagebus.MessagebusConfig messagebusConfig, com.yahoo.messagebus.Protocol protocol)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    com.yahoo.jdisc.ReferencedResource<SharedSourceSession>
    retainSource(com.yahoo.messagebus.SourceSessionParams p)
     

    Methods inherited from class com.yahoo.component.AbstractComponent

    clone, compareTo, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable, toString

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SessionCache

      @Inject public SessionCache(NetworkMultiplexerProvider nets, ContainerMbusConfig containerMbusConfig, com.yahoo.document.DocumentTypeManager documentTypeManager, com.yahoo.messagebus.MessagebusConfig messagebusConfig)
    • SessionCache

      public SessionCache(Supplier<com.yahoo.messagebus.network.NetworkMultiplexer> net, ContainerMbusConfig containerMbusConfig, com.yahoo.document.DocumentTypeManager documentTypeManager, com.yahoo.messagebus.MessagebusConfig messagebusConfig)
    • SessionCache

      public SessionCache(Supplier<com.yahoo.messagebus.network.NetworkMultiplexer> net, ContainerMbusConfig containerMbusConfig, com.yahoo.messagebus.MessagebusConfig messagebusConfig, com.yahoo.messagebus.Protocol protocol)
  • Method Details

    • deconstruct

      public void deconstruct()
      Specified by:
      deconstruct in interface com.yahoo.component.Deconstructable
      Overrides:
      deconstruct in class com.yahoo.component.AbstractComponent
    • retainSource

      public com.yahoo.jdisc.ReferencedResource<SharedSourceSession> retainSource(com.yahoo.messagebus.SourceSessionParams p)