public class IToken extends IUnknown
abandon()
method (preferred, as it is accurately defined
when the release happens), or when the object reference count drops
to 0. The latter way is implicitly used when an API client crashes,
however the discovery that there was a crash can take rather long,
depending on the platform (COM needs 6 minutes). So better don't rely
on the crash behavior too much.
Interface ID: {20479EAF-D8ED-44CF-85AC-C83A26C95A4D}
Constructor and Description |
---|
IToken(java.lang.String wrapped,
org.virtualbox_7_0.ObjectRefManager objMgr,
org.virtualbox_7_0.jaxws.VboxPortType port) |
Modifier and Type | Method and Description |
---|---|
void |
abandon()
Releases this token.
|
void |
dummy()
Purely a NOOP.
|
static IToken |
queryInterface(IUnknown obj) |
getObjMgr, getRemoteWSPort, getWrapped, releaseRemote
public IToken(java.lang.String wrapped, org.virtualbox_7_0.ObjectRefManager objMgr, org.virtualbox_7_0.jaxws.VboxPortType port)
public void abandon()
dummy()
method will return
an error), ready for releasing. It is a more defined way than just
letting the reference count drop to 0, because the latter (depending
on the platform) can trigger asynchronous cleanup activity.public void dummy()