getProcessor

inline fun <Interface> getProcessor(processorLPFCPURI: String): Interface

Creates a proxy instance of the specified interface that forwards method calls to the provided processor LPFCP URI.

Return

A proxy instance of the specified interface.

Parameters

Interface

template parameter - Interface of the processor

processorLPFCPURI

A string representing the processor LPFCP endpoint URI.


inline fun <Interface> getProcessor(processorLPFCP: URI): Interface

Creates a proxy instance of the specified interface that forwards method calls to the provided processor LPFCP URI.

Return

A proxy instance of the specified interface.

Parameters

Interface

template parameter - Interface of the processor

processorLPFCP

A URI representing the processor LPFCP endpoint.


inline fun <Interface> getProcessor(noinline processorLPFCP: (JSONObject, Type) -> Any?): Interface

Creates a proxy instance of the specified interface that forwards method calls to the provided processor function.

Return

A proxy instance of the specified interface.

Parameters

Interface

template parameter - Interface of the processor

processorLPFCP

A function that takes:

  • JSONObject - function call request in LPFCP format;

  • Type - type of value that the called function must return.

processorLPFCP returns an Any? - value from the invoked function.