yr.InstanceProxy

Contents

yr.InstanceProxy#

class yr.InstanceProxy(instance_id, class_descriptor, class_methods, base_cls, function_id, need_order=True, group_name='', is_async=False, instance_name=None, namespace=None, code_ref=None)[source]#

Bases: object

Use to decorate a user class.

Initialize the InstanceProxy instance.

Attributes

real_id

The real instance ID assigned by the runtime.

Methods

__init__

Initialize the InstanceProxy instance.

deserialization_

Deserialization to rebuild instance proxy.

get_function_group_handler

Get the FunctionGroupHandler.

is_activate

Return the instance status.

serialization_

Serialization of instance proxy.

snapshot

Create instance snapshot.

snapstart

Start a new instance from a snapshot.

terminate

Terminate the instance.