Interface SessionFactory

All Known Subinterfaces:
SessionSubcomponent
All Known Implementing Classes:
SessionFactoryConfig.Factory

public interface SessionFactory
  • Method Summary

    Modifier and Type
    Method
    Description
    io.grpc.ManagedChannel
    The ManagedChannel associated with this factory.
    Creates a new Session.
  • Method Details

    • newSession

      Session newSession()
      Creates a new Session. Closing the session does not close the managedChannel().
      Returns:
      the new session
    • managedChannel

      io.grpc.ManagedChannel managedChannel()
      The ManagedChannel associated with this factory. Use ManagedChannel.shutdown() when this factory and sessions are no longer needed.
      Returns:
      the managed channel