Skip to content

Commit cd41b27

Browse files
committed
Update index.md
1 parent 18b880a commit cd41b27

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed

docs/index.md

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ rpc RequestReply (SimpleRequest) returns (SimpleResponse) {}
2626
```
2727

2828
### Fire-and-Forget
29-
Fire and forget sends a request without a response. This is not just ignoring the response; the underlying protocol does not send anything back to the caller. To make a request fire-and-forget with RSocket RPC you need to return google.Protobuf.Empty in your IDL. This will generate fire and forget code.
29+
Fire and forget sends a request without a response. This is not just ignoring the response; the underlying protocol does not send anything back to the caller. To make a request fire-and-forget with RSocket RPC you need to return google.protobuf.Empty in your IDL. This will generate fire and forget code.
3030

3131
#### Protobuf
3232
```
33-
import "google/Protobuf/empty.proto";
33+
import "google/protobuf/empty.proto";
3434
...
35-
rpc FireAndForget (SimpleRequest) returns (google.Protobuf.Empty) {}
35+
rpc FireAndForget (SimpleRequest) returns (google.protobuf.Empty) {}
3636
```
3737

3838
### Single Request / Stream Response
@@ -82,18 +82,18 @@ $ sudo apt-get install libProtobuf-java Protobuf-compiler
8282
RSocket RPC Java uses a Protobuf plugin to generate application code. Add the following code to your project's Gradle file so that it will generate code from your Protobuf IDL when your application is compiled.
8383

8484
```
85-
Protobuf {
85+
protobuf {
8686
protoc {
87-
artifact = 'com.google.Protobuf:protoc:3.6.0'
87+
artifact = 'com.google.protobuf:protoc:3.6.0'
8888
}
8989
plugins {
90-
RSocket RPC {
91-
artifact = 'io.netifi.RSocket RPC:RSocket RPC-java:0.7.x'
90+
rsocketRpc {
91+
artifact = 'io.rsocket.rpc:rsocket-rpc-protobuf:0.2.0'
9292
}
9393
}
9494
generateProtoTasks {
9595
all()*.plugins {
96-
RSocket RPC {}
96+
rsocketRpc {}
9797
}
9898
}
9999
}
@@ -102,9 +102,9 @@ Protobuf {
102102
idea {
103103
module {
104104
sourceDirs += file("${projectDir}/build/generated/source/proto/main/java");
105-
sourceDirs += file("${projectDir}/build/generated/source/proto/main/RSocket RPC");
105+
sourceDirs += file("${projectDir}/build/generated/source/proto/main/rsocketRpc");
106106
sourceDirs += file("${projectDir}/build/generated/source/proto/test/java");
107-
sourceDirs += file("${projectDir}/build/generated/source/proto/test/RSocket RPC");
107+
sourceDirs += file("${projectDir}/build/generated/source/proto/test/rsocketRpc");
108108
}
109109
}
110110
```
@@ -114,11 +114,11 @@ After you have installed Protobuf and configured Gradle you need to create a Pro
114114
```
115115
syntax = "proto3";
116116
117-
package io.netifi.testing;
117+
package io.rsocket.rpc.testing;
118118
119-
import "google/Protobuf/empty.proto";
119+
import "google/protobuf/empty.proto";
120120
121-
option java_package = "io.netifi.testing.Protobuf";
121+
option java_package = "io.rsocket.rpc.testing.protobuf";
122122
option java_outer_classname = "SimpleServiceProto";
123123
option java_multiple_files = true;
124124
@@ -127,7 +127,7 @@ service SimpleService {
127127
rpc RequestReply (SimpleRequest) returns (SimpleResponse) {}
128128
129129
// Fire-and-Forget
130-
rpc FireAndForget (SimpleRequest) returns (google.Protobuf.Empty) {}
130+
rpc FireAndForget (SimpleRequest) returns (google.protobuf.Empty) {}
131131
132132
// Single Request / Streaming Response
133133
rpc RequestStream (SimpleRequest) returns (stream SimpleResponse) {}
@@ -323,17 +323,13 @@ System.out.println(response.getResponseMessage());
323323

324324
The above example streams in 11 items to a server. The server receives the stream, counts the most common words, and then returns a message detailing the data received.
325325

326-
## Working example
327-
To see a working example of the code described here please view the [SimpleServiceTest](https://github.com/netifi/RSocket RPC-java/blob/master/testing-proto/src/test/java/io/netifi/testing/protobuf/SimpleServiceTest.java) class.
328-
329-
330326
## Release Notes
331327

332-
Please find release notes at [https://github.com/netifi/RSocket RPC-java/releases](https://github.com/netifi/RSocket RPC-java/releases).
328+
Please find release notes at [https://github.com/netifi/rsocket-rpc-java/releases](https://github.com/netifi/rsocket-rpc-java/releases).
333329

334330
## Bugs and Feedback
335331

336-
For bugs, questions, and discussions please use the [Github Issues](https://github.com/netifi/RSocket RPC-java/issues).
332+
For bugs, questions, and discussions please use the [Github Issues](https://github.com/netifi/rsocket-rpc-java/issues).
337333

338334
## License
339335
Copyright 2017 Netifi Inc.

0 commit comments

Comments
 (0)