| Modifier and Type | Class and Description |
|---|---|
| public static @interface | Grpc.TransportAttr
Annotation for transport attributes. |
| Modifier and Type | Field and Description |
|---|---|
| public static final Attributes. | TRANSPORT_ATTR_LOCAL_ADDR
Attribute key for the local address of a transport. |
| public static final Attributes. | TRANSPORT_ATTR_REMOTE_ADDR
Attribute key for the remote address of a transport. |
| public static final Attributes. | TRANSPORT_ATTR_SSL_SESSION
Attribute key for SSL session of a transport. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| public static ManagedChannelBuilder | newChannelBuilder(String target, ChannelCredentials creds)
Creates a channel builder with a target string and credentials. |
| public static ManagedChannelBuilder | newChannelBuilderForAddress(String host, int port, ChannelCredentials creds)
Creates a channel builder from a host, port, and credentials. |
| public static ServerBuilder | newServerBuilderForPort(int
the port to listen on port, ServerCredentials the server identity creds)Static factory for creating a new ServerBuilder. |
| TRANSPORT_ATTR_LOCAL_ADDR | back to summary |
|---|---|
| public static final Attributes. Attribute key for the local address of a transport.
| |
| TRANSPORT_ATTR_REMOTE_ADDR | back to summary |
|---|---|
| public static final Attributes. Attribute key for the remote address of a transport.
| |
| TRANSPORT_ATTR_SSL_SESSION | back to summary |
|---|---|
| public static final Attributes. Attribute key for SSL session of a transport.
| |
| Grpc | back to summary |
|---|---|
| private Grpc() | |
| authorityFromHostAndPort | back to summary |
|---|---|
| private static String authorityFromHostAndPort(String host, int port) Combine a host and port into an authority string. | |
| newChannelBuilder | back to summary |
|---|---|
| public static ManagedChannelBuilder Creates a channel builder with a target string and credentials. The target can be either a
valid A
An authority string will be converted to a
| |
| newChannelBuilderForAddress | back to summary |
|---|---|
| public static ManagedChannelBuilder Creates a channel builder from a host, port, and credentials. The host and port are combined to
form an authority string and then passed to | |
| newServerBuilderForPort | back to summary |
|---|---|
| public static ServerBuilder Static factory for creating a new ServerBuilder.
| |
Attributes.