Class HealthCheckHandler

java.lang.Object
com.networknt.aws.lambda.handler.health.HealthCheckHandler
All Implemented Interfaces:
LambdaHandler

public class HealthCheckHandler extends Object implements LambdaHandler
  • Field Details

  • Constructor Details

    • HealthCheckHandler

      public HealthCheckHandler()
    • HealthCheckHandler

      public HealthCheckHandler(com.networknt.health.HealthConfig cfg)
      Constructor with configuration for testing purpose only
      Parameters:
      cfg - HealthConfig
  • Method Details

    • execute

      public com.networknt.status.Status execute(LightLambdaExchange exchange)
      Specified by:
      execute in interface LambdaHandler
    • isEnabled

      public boolean isEnabled()
      Description copied from interface: LambdaHandler
      Indicate if this handler is enabled or not.
      Specified by:
      isEnabled in interface LambdaHandler
      Returns:
      boolean true if enabled
    • register

      public void register()
      Description copied from interface: LambdaHandler
      Register this handler to the handler registration.
      Specified by:
      register in interface LambdaHandler
    • reload

      public void reload()
      Description copied from interface: LambdaHandler
      Reload config values in case the config values changed by config server.
      Specified by:
      reload in interface LambdaHandler
    • isAsynchronous

      public boolean isAsynchronous()
      Description copied from interface: LambdaHandler
      Indicate if this middleware handler is asynchronous or not.
      Specified by:
      isAsynchronous in interface LambdaHandler
      Returns:
      boolean true if asynchronous