Nimbus

Nimbus

  • Docs
  • Getting Started
  • Help

›Clients

Documentation

  • Introduction
  • Deployment

Deploying Resources

  • File Storage Bucket
  • Document Store
  • Key-Value Store
  • Relational Database
  • Functions

    • HTTP Function
    • WebSocket Function
    • Document Store Function
    • Key-Value Store Function
    • Notification Function
    • Queue Function
    • Basic Function
    • File Storage Function
    • After Deployment Function
    • Environment Variables

Clients

  • Document Store Client
  • Key-Value Store Client
  • File Storage Client
  • WebSocket Management Client
  • Basic Serverless Function Client
  • Notification Topic Client
  • Queue Client
  • Relational Database Client
  • Environment Variable Client

Local Deployment

  • Unit Testing
  • Local Server

Basic Serverless Function Client

A basic serverless function client allows you to invoke @BasicServerlessFunctions.

Initialisation

To get a BasicServerlessFunctionClient do:

BasicServerlessFunctionClient client = ClientBuilder.getBasicServerlessFunctionClient();

Additionally the serverless function using this client must be annotated with @UsesBasicServerlessFunctionClient, to handle cloud permissions.

BasicServerlessFunctionClient Methods

  • invoke(Class<? extends Object> handlerClass, String functionName) - Invokes the basic function found in handlerClass with method name functionName. Blocking call.

  • invoke(Class<? extends Object> handlerClass, String functionName, Object param) - Invokes the basic function found in handlerClass with method name functionName, with the given parameter. Blocking call.

  • T invoke(Class<? extends Object> handlerClass, String functionName, Class<T> responseType) - Invokes the basic function found in handlerClass with method name functionName and returns object of type T (which should match basic function method return type). Blocking call.

  • T invoke(Class<? extends Object> handlerClass, String functionName, Object param, Class<T> responseType) - Invokes the basic function found in handlerClass with method name functionName, with the given parameter, and returns object of type T (which should match basic function method return type). Blocking call.

  • invokeAsync(Class<? extends Object> handlerClass, String functionName) - - Invokes the basic function found in handlerClass with method name functionName. Non-blocking call.

  • invokeAsync(Class<? extends Object> handlerClass, String functionName, Object param) - Invokes the basic function found in handlerClass with method name functionName, with the given parameter. Non-blocking call.

Annotation Specification

@UsesBasicServerlessFunctionClient

  • stages - The stages which this function has access to the basic serverless function client
← WebSocket Management ClientNotification Topic Client →
  • Initialisation
  • BasicServerlessFunctionClient Methods
  • Annotation Specification
    • @UsesBasicServerlessFunctionClient
Nimbus
Docs
Getting StartedDocumentation
More
GitHubStar
Copyright © 2019 Thomas Allerton