io.scalecube.services.gateway.websocket.HeartbeatService Maven / Gradle / Ivy
The newest version!
package io.scalecube.services.gateway.websocket;
import io.scalecube.services.annotations.Service;
import io.scalecube.services.annotations.ServiceMethod;
import reactor.core.publisher.Mono;
/**
* Service interface for handling custom ping/pong service messages for websocket - service is
* echoing back ping message to the client. Used (optionally) as part of {@link WebsocketGateway}.
*/
@Service(HeartbeatService.NAMESPACE)
public interface HeartbeatService {
String NAMESPACE = "v1/heartbeat";
@ServiceMethod
Mono ping(long value);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy