org.brutusin.demo.http.ConditionalCachedAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rpc-examples Show documentation
Show all versions of rpc-examples Show documentation
Examples of Brutusin-RPC component implementations
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);
}
}