You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/02/17 03:28:54 UTC

[GitHub] [pulsar] momo-jun commented on a change in pull request #14315: [PIP 86] add doc for initialize function interface

momo-jun commented on a change in pull request #14315:
URL: https://github.com/apache/pulsar/pull/14315#discussion_r808645632



##########
File path: site2/docs/functions-develop.md
##########
@@ -101,6 +101,38 @@ func main() {
 ```
 For complete code, see [here](https://github.com/apache/pulsar/blob/77cf09eafa4f1626a53a1fe2e65dd25f377c1127/pulsar-function-go/examples/inputFunc/inputFunc.go#L20-L36).
 
+Function initialize and close interface are available in **Pulsar Function SDK for Java 2.10.0 or later**.

Review comment:
       This extended Function SDK provides an interface to initialize and release external resources, which is easy and efficient to use and expand. Before starting a Function, you don't have to make various judgments in the Function interface for those resources which only need one-time initialization. After closing a Function, you don't need to manually close the referenced external resources. The order of releasing external resources is controlled by the Function itself.
   
   > **Note** 
   > The extended Function SDK for java is available in Pulsar 2.10.0 or later versions. Before using it, you need to set up Pulsar Functions worker 2.10.0 or later versions.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org