Class YcFunctionExample
- java.lang.Object
-
- yandex.cloud.sdk.examples.serverless.YcFunctionExample
-
- All Implemented Interfaces:
yandex.cloud.sdk.functions.YcFunction<java.lang.Integer,java.lang.String>
public class YcFunctionExample extends java.lang.Object implements yandex.cloud.sdk.functions.YcFunction<java.lang.Integer,java.lang.String>
-
-
Constructor Summary
Constructors Constructor Description YcFunctionExample()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringhandle(java.lang.Integer event, yandex.cloud.sdk.functions.Context context)NOTE: you must run this function with integration=raw, see https://cloud.yandex.ru/docs/functions/concepts/function-invoke#http
-
-
-
Method Detail
-
handle
public java.lang.String handle(java.lang.Integer event, yandex.cloud.sdk.functions.Context context)NOTE: you must run this function with integration=raw, see https://cloud.yandex.ru/docs/functions/concepts/function-invoke#http- Specified by:
handlein interfaceyandex.cloud.sdk.functions.YcFunction<java.lang.Integer,java.lang.String>- Parameters:
event- integer number icontext- function context, see https://cloud.yandex.ru/docs/functions/lang/java/context- Returns:
- i-th fibonacci number
-
-