Annotation Interface GemfireFunction
Used to declare a concrete method as a GemFire function implementation
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionint
Controls the maximum number of results sent at one time.boolean
Attribute used to configure whether theFunction
is HA (Highly Available).boolean
Normally follows the method return type, i.e.Thename
of the registeredFunction
.boolean
Attribute to configure whether theFunction
is optimized for write operations.String[]
Returns the list ofResourcePermission
required by thisFunction
. -
Field Summary
-
Field Details
-
DEFAULT_RESOURCE_PERMISSION
- See Also:
-
-
Element Details
-
id
String id- Returns:
- the
Function
id
. - See Also:
-
Function.getId()
- Default:
- ""
-
batchSize
int batchSizeControls the maximum number of results sent at one time.- Returns:
- an integer value indicating the batch size, or the number of results sent at one time.
- Default:
- 0
-
HA
boolean HAAttribute used to configure whether theFunction
is HA (Highly Available).- Returns:
- a boolean value configuring whether the defined
Function
is HA. - See Also:
-
Function.isHA()
- Default:
- false
-
hasResult
boolean hasResultNormally follows the method return type, i.e. false ifvoid
, true otherwise. This allows overriding avoid
method which uses theResultSender
directly.- Returns:
- a boolean value indicating if the
Function
is expected to return a result. - See Also:
-
Function.hasResult()
- Default:
- false
-
optimizeForWrite
boolean optimizeForWriteAttribute to configure whether theFunction
is optimized for write operations.- Returns:
- a boolean value indicating if the
Function
is configured for optimized write operations. - See Also:
-
Function.optimizeForWrite()
- Default:
- false
-
requiredPermissions
String[] requiredPermissionsReturns the list ofResourcePermission
required by thisFunction
. By default,Functions
require DATA:WRITE permission.- Default:
- {"DATA:WRITE"}
-