-
-
Save l1x/7cbe2dd3ffcae8d6378430cac3086df7 to your computer and use it in GitHub Desktop.
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
"errorMessage": "Class dbmgmt does not implement RequestHandler with concrete type parameters" | |
Clojure: | |
javap target/classes/dbmgmt.class | |
public class dbmgmt implements com.amazonaws.services.lambda.runtime.RequestHandler { | |
public static {}; | |
public dbmgmt(); | |
public boolean equals(java.lang.Object); | |
public java.lang.String toString(); | |
public int hashCode(); | |
public java.lang.Object clone(); | |
public java.lang.Object handleRequest(java.lang.Object, com.amazonaws.services.lambda.runtime.Context); | |
public static void main(java.lang.String[]); | |
} | |
Java: | |
javap target/classes/com/streambright/Dbmgmt.class | |
Compiled from "Dbmgmt.java" | |
public class com.streambright.Dbmgmt implements com.amazonaws.services.lambda.runtime.RequestHandler<java.lang.Object, java.lang.Object> { | |
public com.streambright.Dbmgmt(); | |
public java.lang.String handleRequest(java.lang.Object, com.amazonaws.services.lambda.runtime.Context); | |
public java.lang.Object handleRequest(java.lang.Object, com.amazonaws.services.lambda.runtime.Context); | |
} |
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
(defn -handleRequest [this in ctx] | |
(reify RequestHandler | |
(handleRequest [this in ctx] "ok"))) |
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
import com.amazonaws.services.lambda.runtime.Context; | |
import com.amazonaws.services.lambda.runtime.RequestHandler; | |
public class Dbmgmt implements RequestHandler<Object, Object> { | |
@Override | |
public String handleRequest(Object in, Context ctx) { | |
System.out.println("ok"); | |
ctx.getLogger().log("ok"); | |
return "ok"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment