[Java] Class CacheableCallSite
- org.codehaus.groovy.vmplugin.v8.CacheableCallSite
public class CacheableCallSite extends MutableCallSite
Represents a cacheable call site, which can reduce the cost of resolving methods
- Since:
- 3.0.0
Constructor Summary
Constructor and description |
---|
CacheableCallSite
(MethodType type) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public MethodHandleWrapper |
getAndPut(String className, org.codehaus.groovy.runtime.memoize.MemoizeCache.ValueProvider<? super String, ? extends MethodHandleWrapper> valueProvider) | |
public MethodHandle |
getDefaultTarget() | |
public MethodHandle |
getFallbackTarget() | |
public long |
incrementFallbackCount() | |
public MethodHandleWrapper |
put(String name, MethodHandleWrapper mhw) | |
public void |
resetFallbackCount() | |
public void |
setDefaultTarget(MethodHandle defaultTarget) | |
public void |
setFallbackTarget(MethodHandle fallbackTarget) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class MutableCallSite | dynamicInvoker, getTarget, setTarget, syncAll, type, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail
public CacheableCallSite(MethodType type)
Method Detail
public MethodHandleWrapper getAndPut(String className, org.codehaus.groovy.runtime.memoize.MemoizeCache.ValueProvider<? super String, ? extends MethodHandleWrapper> valueProvider)
public MethodHandle getDefaultTarget()
public MethodHandle getFallbackTarget()
public long incrementFallbackCount()
public MethodHandleWrapper put(String name, MethodHandleWrapper mhw)
public void resetFallbackCount()
public void setDefaultTarget(MethodHandle defaultTarget)
public void setFallbackTarget(MethodHandle fallbackTarget)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/vmplugin/v8/CacheableCallSite.html