public class PinState
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
PIN_ALLOWED
If set, then the user called "unref" which explicitly avoids the pinned state
|
static int |
PIN_REQUESTED
If set, then the object has requested a pin from the runtime
|
| Constructor and Description |
|---|
PinState() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearPin(GenericNodeRuntime runtime)
Clear the flag requesting that we pin the script.
|
void |
decrementPinRequest(GenericNodeRuntime runtime) |
void |
incrementPinRequest(GenericNodeRuntime runtime)
This is a wrapper that calls "requestPin" only the first time, and
"clearPin" only the last time.
|
void |
ref(GenericNodeRuntime runtime)
Clear the state set by unref and pin the script if one had been previously requested.
|
void |
requestPin(GenericNodeRuntime runtime)
Set a flag requesting that we pin the script if it was not already pinned or unrefed.
|
void |
unref(GenericNodeRuntime runtime)
Set a flag preventing this object from ever pinning the script even if a pin
was requested and un-pin if it ever was.
|
public static final int PIN_REQUESTED
public static final int PIN_ALLOWED
public void ref(GenericNodeRuntime runtime)
public void unref(GenericNodeRuntime runtime)
public void requestPin(GenericNodeRuntime runtime)
public void clearPin(GenericNodeRuntime runtime)
public void incrementPinRequest(GenericNodeRuntime runtime)
public void decrementPinRequest(GenericNodeRuntime runtime)
Copyright © 2018 Apigee Corporation. All Rights Reserved.