VolatileCallSite.Target Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the target method of the call site, which behaves
like a volatile
field of the VolatileCallSite
. -or- Updates the target method of this call site, as a volatile variable.
public override Java.Lang.Invoke.MethodHandle? Target { [Android.Runtime.Register("getTarget", "()Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)] get; [Android.Runtime.Register("setTarget", "(Ljava/lang/invoke/MethodHandle;)V", "GetSetTarget_Ljava_lang_invoke_MethodHandle_Handler", ApiSince=26)] set; }
[<get: Android.Runtime.Register("getTarget", "()Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)>]
[<set: Android.Runtime.Register("setTarget", "(Ljava/lang/invoke/MethodHandle;)V", "GetSetTarget_Ljava_lang_invoke_MethodHandle_Handler", ApiSince=26)>]
member this.Target : Java.Lang.Invoke.MethodHandle with get, set
Property Value
the linkage state of this call site, a method handle which can change over time
- Attributes
Remarks
Property getter documentation:
Returns the target method of the call site, which behaves like a volatile
field of the VolatileCallSite
.
The interactions of getTarget
with memory are the same as of a read from a volatile
field.
In particular, the current thread is required to issue a fresh read of the target from memory, and must not fail to see a recent update to the target by another thread.
Java documentation for java.lang.invoke.VolatileCallSite.getTarget()
.
Property setter documentation:
Updates the target method of this call site, as a volatile variable. The type of the new target must agree with the type of the old target.
The interactions with memory are the same as of a write to a volatile field. In particular, any threads is guaranteed to see the updated target the next time it calls getTarget
.
Java documentation for java.lang.invoke.VolatileCallSite.setTarget(java.lang.invoke.MethodHandle)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.