Skip navigation links
com.amazonaws.services.lambda.invoke

Class LambdaInvokerFactory

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      private static com.fasterxml.jackson.databind.ObjectMapper MAPPER 
    • Constructor Summary

      Constructors 
      Modifier Constructor and Description
      private LambdaInvokerFactory() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static <T> T build(java.lang.Class<T> interfaceClass, AWSLambda awsLambda)
      Creates a new Lambda invoker implementing the given interface and wrapping the given AWSLambda client.
      static <T> T build(java.lang.Class<T> interfaceClass, AWSLambda awsLambda, LambdaInvokerFactoryConfig config)
      Creates a new Lambda invoker implementing the given interface and wrapping the given AWSLambda client.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MAPPER

        private static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
    • Constructor Detail

      • LambdaInvokerFactory

        private LambdaInvokerFactory()
    • Method Detail

      • build

        public static <T> T build(java.lang.Class<T> interfaceClass,
                                  AWSLambda awsLambda)
        Creates a new Lambda invoker implementing the given interface and wrapping the given AWSLambda client.
        Parameters:
        interfaceClass - the interface to implement
        awsLambda - the lambda client to use for making remote calls
      • build

        public static <T> T build(java.lang.Class<T> interfaceClass,
                                  AWSLambda awsLambda,
                                  LambdaInvokerFactoryConfig config)
        Creates a new Lambda invoker implementing the given interface and wrapping the given AWSLambda client.
        Parameters:
        interfaceClass - the interface to implement
        awsLambda - the lambda client to use for making remote calls
        config - configuration for the LambdaInvokerFactory