|
29 | 29 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 | 30 | */ |
31 | 31 |
|
32 | | -package io.grpc; |
33 | 32 | /** |
34 | 33 | * The gRPC core public API. |
35 | 34 | * |
|
39 | 38 | * messages, they half close their respective connections. The RPC is complete as soon as the |
40 | 39 | * server closes. |
41 | 40 | * |
42 | | - * <p>To send an RPC, first create a {@link Channel} using {@link ManagedChannelBuilder#forTarget}. |
43 | | - * When using auto generate Protobuf stubs, the stub class will have constructors for wrapping the |
44 | | - * channel. These include {@code newBlockingStub}, {@code newStub}, and {@code newFutureStub} |
45 | | - * which you can use based on your design. The stub is the primary way a client interacts with a |
46 | | - * server. |
| 41 | + * <p>To send an RPC, first create a {@link io.grpc.Channel} using |
| 42 | + * {@link io.grpc.ManagedChannelBuilder#forTarget}. When using auto generate Protobuf stubs, the |
| 43 | + * stub class will have constructors for wrapping the channel. These include |
| 44 | + * {@code newBlockingStub}, {@code newStub}, and {@code newFutureStub} which you can use based on |
| 45 | + * your design. The stub is the primary way a client interacts with a server. |
47 | 46 | * |
48 | | - * <p>To receive RPCs, create a {@link Server} using {@link ServerBuilder#forPort}. The Protobuf |
49 | | - * stub will contain an abstract class called AbstractFoo, where Foo is the name of your service. |
50 | | - * Extend this class, and pass an instance of it to {@link ServerBuilder#addService}. Once your |
51 | | - * server is built, call {@link Server#start} to begin accepting RPCs. |
| 47 | + * <p>To receive RPCs, create a {@link io.grpc.Server} using {@link io.grpc.ServerBuilder#forPort}. |
| 48 | + * The Protobuf stub will contain an abstract class called AbstractFoo, where Foo is the name of |
| 49 | + * your service. Extend this class, and pass an instance of it to |
| 50 | + * {@link io.grpc.ServerBuilder#addService}. Once your server is built, call |
| 51 | + * {@link io.grpc.Server#start} to begin accepting RPCs. |
52 | 52 | * |
53 | 53 | * <p>Both Clients and Servers should use a custom {@link java.util.concurrent.Executor}. The gRPC |
54 | 54 | * runtime includes a default executor that eases testing and examples, but is not ideal for use in |
|
68 | 68 | * <a href="https://groups.google.com/forum/#!forum/grpc-io">grpc-io</a> if you have questions |
69 | 69 | * about gRPC. |
70 | 70 | */ |
71 | | - |
| 71 | +package io.grpc; |
0 commit comments