Interface Channel


public interface Channel
A channel is an abstraction of a transport layer (e.g., HTTP) that is consumed by server and client stubs.

Threading Model

Implementations of execute(Endpoint, Request) must return immediately, and must not perform blocking operations. Channel implementations using blocking constructs must internally leverage an executor to expose only a non-blocking API.

Behavior

Implementations of execute(Endpoint, Request) must never throw. A failed ListenableFuture must be returned instead. See also EndpointChannelFactory and EndpointChannel.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.common.util.concurrent.ListenableFuture<Response>
    execute(Endpoint endpoint, Request request)
     
  • Method Details

    • execute

      com.google.common.util.concurrent.ListenableFuture<Response> execute(Endpoint endpoint, Request request)