Class 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>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
      • Methods inherited from class java.lang.Object

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

      • YcFunctionExample

        public YcFunctionExample()
    • 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:
        handle in interface yandex.cloud.sdk.functions.YcFunction<java.lang.Integer,​java.lang.String>
        Parameters:
        event - integer number i
        context - function context, see https://cloud.yandex.ru/docs/functions/lang/java/context
        Returns:
        i-th fibonacci number