public class OkHttpClientTransport extends Object implements io.grpc.transport.ClientTransport
ClientTransport implementation.| Modifier and Type | Field and Description |
|---|---|
static ConnectionSpec |
DEFAULT_CONNECTION_SPEC |
| Modifier and Type | Method and Description |
|---|---|
io.grpc.transport.okhttp.OkHttpClientStream |
newStream(io.grpc.MethodDescriptor<?,?> method,
io.grpc.Metadata.Headers headers,
io.grpc.transport.ClientStreamListener listener) |
void |
shutdown() |
void |
start(io.grpc.transport.ClientTransport.Listener listener) |
public static final ConnectionSpec DEFAULT_CONNECTION_SPEC
public io.grpc.transport.okhttp.OkHttpClientStream newStream(io.grpc.MethodDescriptor<?,?> method,
io.grpc.Metadata.Headers headers,
io.grpc.transport.ClientStreamListener listener)
newStream in interface io.grpc.transport.ClientTransportpublic void start(io.grpc.transport.ClientTransport.Listener listener)
start in interface io.grpc.transport.ClientTransportpublic void shutdown()
shutdown in interface io.grpc.transport.ClientTransport