public class Function extends AbstractOrganizableObject
| Modifier and Type | Field and Description |
|---|---|
protected DynamicValue<Integer> |
callTimeout |
static String |
NAME |
protected javax.json.JsonObject |
schema |
protected Map<String,String> |
tokenSelectionCriteria |
attributes_id| Constructor and Description |
|---|
Function() |
| Modifier and Type | Method and Description |
|---|---|
DynamicValue<Integer> |
getCallTimeout() |
javax.json.JsonObject |
getSchema() |
Map<String,String> |
getTokenSelectionCriteria() |
boolean |
requiresLocalExecution() |
void |
setCallTimeout(DynamicValue<Integer> callTimeout) |
void |
setSchema(javax.json.JsonObject schema)
Sets the JSON schema to be used to validate the function's input at execution time
|
void |
setTokenSelectionCriteria(Map<String,String> tokenSelectionCriteria)
Defines additional selection criteria of agent token on which the function should be executed
|
getAttributes, setAttributesgetId, setIdprotected DynamicValue<Integer> callTimeout
protected javax.json.JsonObject schema
public static final String NAME
public void setTokenSelectionCriteria(Map<String,String> tokenSelectionCriteria)
tokenSelectionCriteria - a map containing the additional selection criteria as key-value pairspublic DynamicValue<Integer> getCallTimeout()
public void setCallTimeout(DynamicValue<Integer> callTimeout)
callTimeout - the call timeout of the function in mspublic javax.json.JsonObject getSchema()
public void setSchema(javax.json.JsonObject schema)
schema - the JSON schema of the function. See https://json-schema.org/ for more details concerning JSON schema.public boolean requiresLocalExecution()
Copyright © 2019. All rights reserved.