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

org.brutusin.demo.http.ConditionalCachedAction Maven / Gradle / Ivy

The newest version!
package org.brutusin.demo.http;

import org.brutusin.rpc.http.Cacheable;
import org.brutusin.rpc.http.SafeAction;


public class ConditionalCachedAction extends SafeAction {

    private static final String MESSAGE = "This response is conditionally cacheable";

    @Override
    public Cacheable execute(Void input) throws Exception {
        return Cacheable.conditionally(MESSAGE);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy