-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support of heartbeat for websocket gateway (#864)
- Loading branch information
Showing
19 changed files
with
176 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 0 additions & 74 deletions
74
services-api/src/main/java/io/scalecube/services/gateway/GatewayOptions.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
services-gateway/src/main/java/io/scalecube/services/gateway/websocket/HeartbeatService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package io.scalecube.services.gateway.websocket; | ||
|
||
import io.scalecube.services.annotations.Service; | ||
import io.scalecube.services.annotations.ServiceMethod; | ||
import reactor.core.publisher.Mono; | ||
|
||
@Service(HeartbeatService.NAMESPACE) | ||
public interface HeartbeatService { | ||
|
||
String NAMESPACE = "v1/scalecube.websocket.heartbeat"; | ||
|
||
@ServiceMethod | ||
Mono<Long> ping(long value); | ||
} |
11 changes: 11 additions & 0 deletions
11
...s-gateway/src/main/java/io/scalecube/services/gateway/websocket/HeartbeatServiceImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package io.scalecube.services.gateway.websocket; | ||
|
||
import reactor.core.publisher.Mono; | ||
|
||
public class HeartbeatServiceImpl implements HeartbeatService { | ||
|
||
@Override | ||
public Mono<Long> ping(long value) { | ||
return Mono.just(value); | ||
} | ||
} |
Oops, something went wrong.