Created
March 12, 2019 03:17
-
-
Save kennetham/383d7ecef193c0d865d05a9326b8e5c2 to your computer and use it in GitHub Desktop.
Java Serverless Function with Kubeless on Kubernetes
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 io.kubeless; | |
import io.kubeless.Event; | |
import io.kubeless.Context; | |
import org.joda.time.LocalTime; | |
public class HelloWorld { | |
public String foo(io.kubeless.Event event, io.kubeless.Context context) { | |
System.out.println(event.Data); | |
LocalTime currentTime = new LocalTime(); | |
return event.Data + " - Current local time is: " + currentTime; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment