yr.StatefulInstance

Contents

yr.StatefulInstance#

class yr.StatefulInstance#

有状态函数实例的代理对象,提供远程方法调用能力。

StatefulInstance 是通过 StatefulInstanceCreator 创建的有状态函数实例的句柄,用于调用实例方法、管理实例生命周期等操作。

Note

StatefulInstance 是推荐使用的新名称,替代了原来的 InstanceProxy。InstanceProxy 仍然可用以保持向后兼容性。

方法

terminate

终止实例。

is_activate

返回实例状态。