Package me.kzheart.klib.guard.kether
Interface KetherInteropEndpoint
public interface KetherInteropEndpoint
商品私有 Kether 运行时向父加载器公开的句柄式调用边界。
实现不得返回私有的 parser、action 或 frame。门户只持有 long action 句柄,
商品内部对象始终留在商品类加载器内。
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddActions(KetherInteropPeer peer, String namespace, String[] actions) 把外部容器发布的 action 导入商品注册表。voidclose()使全部句柄和进行中的 future 失效并释放商品引用;重复调用必须安全。process(KetherInteropPeer peer, String consumerName, long actionHandle, Object frame) 使用外部 frame 执行先前解析的 action。voidrelease(long actionHandle) 提前释放一个 action 句柄;重复释放必须安全。voidremoveActions(KetherInteropPeer peer, String namespace, String[] actions) 撤销指定外部容器发布的 action。longresolve(KetherInteropPeer peer, String consumerName, Object reader, String action, String namespace) 解析商品发布的 action,返回仅对当前商品代次有效的不透明句柄。
-
Method Details
-
addActions
把外部容器发布的 action 导入商品注册表。 -
removeActions
撤销指定外部容器发布的 action。 -
resolve
long resolve(KetherInteropPeer peer, String consumerName, Object reader, String action, String namespace) 解析商品发布的 action,返回仅对当前商品代次有效的不透明句柄。 -
process
CompletionStage<Object> process(KetherInteropPeer peer, String consumerName, long actionHandle, Object frame) 使用外部 frame 执行先前解析的 action。 -
release
void release(long actionHandle) 提前释放一个 action 句柄;重复释放必须安全。 -
close
void close()使全部句柄和进行中的 future 失效并释放商品引用;重复调用必须安全。
-