Interface ResourceProviderCallback

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ResourceProviderCallback
Intercepts network resource requests for a runtime.

Native code may invoke this callback on worker or network threads. The callback should return quickly and avoid calling map or runtime APIs. Return ResourceProviderDecision.HANDLE only when the callback stores or completes the supplied ResourceRequestHandle; otherwise return ResourceProviderDecision.PASS_THROUGH. If the callback completes the handle inline, the binding reports the request as handled even when the callback returns pass-through. The binding catches callback exceptions and converts them to provider error responses instead of issuing a fallback network request.