static PluginFactory.Builder |
PluginFactory.builder(WasmModule module) |
|
PluginFactory.Builder |
PluginFactory.Builder.withForeignFunctions(Map<String,ForeignFunction> functions) |
Registers foreign (host-provided) functions that can be called by the WASM plugin.
|
PluginFactory.Builder |
PluginFactory.Builder.withImportMemory(ImportMemory memory) |
Provides an explicit memory instance to be used by the WASM module.
|
PluginFactory.Builder |
PluginFactory.Builder.withLogger(LogHandler logger) |
Provides a LogHandler implementation for the plugin to use.
|
PluginFactory.Builder |
PluginFactory.Builder.withMachineFactory(Function<Instance,Machine> machineFactory) |
Configures a custom factory for creating the Machine used to execute the WASM code.
|
PluginFactory.Builder |
PluginFactory.Builder.withMetricsHandler(MetricsHandler metricsHandler) |
|
PluginFactory.Builder |
PluginFactory.Builder.withMinTickPeriodMilliseconds(int minTickPeriodMilliseconds) |
Sets a minimum interval for the plugin's periodic timer ticks (proxy_on_tick ).
|
PluginFactory.Builder |
PluginFactory.Builder.withName(String name) |
Sets the optional name for this plugin instance.
|
PluginFactory.Builder |
PluginFactory.Builder.withPluginConfig(byte[] pluginConfig) |
Sets the specific configuration data for this plugin instance.
|
PluginFactory.Builder |
PluginFactory.Builder.withPluginConfig(String pluginConfig) |
Sets the specific configuration data for this plugin instance using a String.
|
PluginFactory.Builder |
PluginFactory.Builder.withShared(boolean shared) |
Configures whether the plugin instance should be shared across multiple host requests or contexts.
|
PluginFactory.Builder |
PluginFactory.Builder.withSharedDataHandler(SharedDataHandler sharedDataHandler) |
|
PluginFactory.Builder |
PluginFactory.Builder.withSharedQueueHandler(SharedQueueHandler sharedQueueHandler) |
|
PluginFactory.Builder |
PluginFactory.Builder.withStrictUpstreams(boolean strictUpstreams) |
Configures the behavior when a plugin attempts to call an upstream that is not defined
in the `upstreams` map provided via withUpstreams(Map) .
|
PluginFactory.Builder |
PluginFactory.Builder.withUpstreams(Map<String,URI> upstreams) |
Defines mappings from logical upstream names (used within the plugin) to actual network URIs.
|
PluginFactory.Builder |
PluginFactory.Builder.withVmConfig(byte[] vmConfig) |
Sets the Virtual Machine (VM) configuration data for the plugin.
|
PluginFactory.Builder |
PluginFactory.Builder.withVmConfig(String vmConfig) |
Sets the Virtual Machine (VM) configuration data for the plugin using a String.
|
PluginFactory.Builder |
PluginFactory.Builder.withWasiOptions(com.dylibso.chicory.wasi.WasiOptions options) |
Configures WebAssembly System Interface (WASI) options for the plugin instance.
|