activator java,Activator (Java 14 API文档 & JDK 14 API文档) - 手册 - 时代Java

Activate the object associated with the activation identifier,

id. If the activator knows the object to be active

already, and force is false , the stub with a

"live" reference is returned immediately to the caller;

otherwise, if the activator does not know that corresponding

the remote object is active, the activator uses the activation

descriptor information (previously registered) to determine the

group (VM) in which the object should be activated. If an

ActivationInstantiator corresponding to the

object's group descriptor already exists, the activator invokes

the activation group's newInstance method passing

it the object's id and descriptor.

If the activation group for the object's group descriptor does

not yet exist, the activator starts an

ActivationInstantiator executing (by spawning a

child process, for example). When the activator receives the

activation group's call back (via the

ActivationSystem's activeGroup

method) specifying the activation group's reference, the

activator can then invoke that activation instantiator's

newInstance method to forward each pending

activation request to the activation group and return the

result (a marshalled remote object reference, a stub) to the

caller.

Note that the activator receives a "marshalled" object instead of a

Remote object so that the activator does not need to load the

code for that object, or participate in distributed garbage

collection for that object. If the activator kept a strong

reference to the remote object, the activator would then

prevent the object from being garbage collected under the

normal distributed garbage collection mechanism.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值