org.pipservices3.rpc.services.HeartbeatOperations Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pip-services3-rpc Show documentation
Show all versions of pip-services3-rpc Show documentation
Networking and communication platform for Pip.Services in Java
The newest version!
package org.pipservices3.rpc.services;
import jakarta.ws.rs.container.ContainerRequestContext;
import jakarta.ws.rs.core.Response;
import java.time.ZonedDateTime;
import java.util.function.Function;
public class HeartbeatOperations extends RestOperations {
public Function getHeartbeatOperation() {
return this::heartbeat;
}
public Response heartbeat(ContainerRequestContext req) {
return this.sendResult(ZonedDateTime.now());
}
}