All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.pipservices3.rpc.services.HeartbeatOperations Maven / Gradle / Ivy

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());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy