-
-
Save caponetto/bab7577355c78641ec1e31c0f1d7667a to your computer and use it in GitHub Desktop.
Backend sample service: Capability on the editor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.appformer.kogito.bridge.client.capability.sample; | |
import elemental2.promise.Promise; | |
import org.appformer.kogito.bridge.client.capability.CapabilityResponse; | |
/** | |
* Sample capability. | |
*/ | |
public interface SampleCapability { | |
/** | |
* Sample method that returns a greeting with the given name after a given delay. | |
* | |
* @param name The person's name. | |
* @param delay The time in ms for delaying the response. | |
* @return A greeting after the delay. | |
*/ | |
Promise<CapabilityResponse<String>> hello(String name, int delay); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment