Modifier and Type | Fields and Description |
---|---|
static String |
DEFAULT_RESOURCE_PERMISSION |
Modifier and Type | Optional Element and Description |
---|---|
int |
batchSize
Controls the maximum number of results sent at one time.
|
boolean |
HA
Attribute used to configure whether the
Function is HA (Highly Available). |
boolean |
hasResult
Normally follows the method return type, i.e.
|
String |
id
The
name of the registered Function . |
boolean |
optimizeForWrite
Attribute to configure whether the
Function is optimized for write operations. |
String[] |
requiredPermissions
Returns the list of
ResourcePermission required by this Function . |
public static final String DEFAULT_RESOURCE_PERMISSION
public abstract String id
Function
id
.Function.getId()
public abstract int batchSize
public abstract boolean HA
Function
is HA (Highly Available).Function
is HA.Function.isHA()
public abstract boolean hasResult
void
, true otherwise.
This allows overriding a void
method which uses the ResultSender
directly.Function
is expected to return a result.Function.hasResult()
public abstract boolean optimizeForWrite
Function
is optimized for write operations.Function
is configured for optimized write operations.Function.optimizeForWrite()
public abstract String[] requiredPermissions
ResourcePermission
required by this Function
.
By default, Functions
require DATA:WRITE permission.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.