File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
services-examples/src/main/java/io/scalecube/services/examples/codecs Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,6 @@ You can think about scalecube as slf4j for microservices - Currently supported S
172172**Message codec providers:**
173173
174174* scalecube-services-transport-jackson: using Jackson to encode / decode service messages. https:// github.com/FasterXML
175- * scalecube-services-transport-protostuff: using protostuff to encode / decode service messages. https:// github.com/protostuff
176175
177176**Service discovery providers:**
178177
Original file line number Diff line number Diff line change 1212public class Example1 {
1313
1414 public static final String JSON = "application/json" ;
15- public static final String PROTOSTUFF = "application/protostuff" ;
1615 public static final String OCTET_STREAM = "application/octet-stream" ;
1716
1817 /**
@@ -31,7 +30,7 @@ public static void main(String[] args) {
3130 .transport (cfg -> cfg .transportFactory (new WebsocketTransportFactory ()))
3231 .options (opts -> opts .metadata (serviceEndpoint )))
3332 .transport (RSocketServiceTransport ::new )
34- // .defaultContentType(PROTOSTUFF ) // set explicit default data format
33+ // .defaultContentType(JSON ) // set explicit default data format
3534 );
3635
3736 final Address seedAddress = seed .discoveryAddress ();
@@ -51,7 +50,7 @@ public static void main(String[] args) {
5150
5251 seed .call ()
5352 .api (GreetingsService .class )
54- .sayHello ("joe (on default dataFormat PROTOSTUFF )" )
53+ .sayHello ("joe (on JSON dataFormat)" )
5554 .subscribe (consumer -> System .out .println (consumer .message ()));
5655
5756 seed .call ()
You can’t perform that action at this time.
0 commit comments