File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ Example:
23
23
24
24
``` groovy
25
25
dependencies {
26
- implementation 'io.rsocket:rsocket-core:0.11.14 '
27
- implementation 'io.rsocket:rsocket-transport-netty:0.11.14 '
28
- // implementation 'io.rsocket:rsocket-core:0.11.15.BUILD -SNAPSHOT'
29
- // implementation 'io.rsocket:rsocket-transport-netty:0.11.15.BUILD -SNAPSHOT'
26
+ implementation 'io.rsocket:rsocket-core:0.12.2-RC2 '
27
+ implementation 'io.rsocket:rsocket-transport-netty:0.12.2-RC2 '
28
+ // implementation 'io.rsocket:rsocket-core:0.12.2-RC3 -SNAPSHOT'
29
+ // implementation 'io.rsocket:rsocket-transport-netty:0.12.2-RC3 -SNAPSHOT'
30
30
}
31
31
```
32
32
@@ -91,7 +91,7 @@ or you will get a memory leak. Used correctly this will reduce latency and incre
91
91
``` java
92
92
RSocketFactory . receive()
93
93
// Enable Zero Copy
94
- .payloadDecoder( Frame :: retain )
94
+ .frameDecoder( PayloadDecoder . ZERO_COPY )
95
95
.acceptor(new PingHandler ())
96
96
.transport(TcpServerTransport . create(7878 ))
97
97
.start()
@@ -105,7 +105,7 @@ RSocketFactory.receive()
105
105
Mono<RSocket > client =
106
106
RSocketFactory . connect()
107
107
// Enable Zero Copy
108
- .payloadDecoder( Frame :: retain )
108
+ .frameDecoder( PayloadDecoder . ZERO_COPY )
109
109
.transport(TcpClientTransport . create(7878 ))
110
110
.start();
111
111
```
You can’t perform that action at this time.
0 commit comments