All Downloads are FREE. Search and download functionalities are using the official Maven repository.

akka.grpc.scaladsl.AkkaGrpcClient.scala Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2018-2019 Lightbend Inc. 
 */

package akka.grpc.scaladsl

import scala.concurrent.Future

import akka.Done
import akka.annotation.DoNotInherit

/** Common trait of all generated Akka gRPC clients. Not for user extension. */
@DoNotInherit
trait AkkaGrpcClient {
  /**
   * Initiates a shutdown in which preexisting and new calls are cancelled.
   */
  def close(): Future[Done]

  /**
   * Returns a Future that completes successfully when shutdown via close()
   * or exceptionally if a connection can not be established or reestablished
   * after maxConnectionAttempts.
   */
  def closed(): Future[Done]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy