Annotation Interface GemfireFunction
Used to declare a concrete method as a GemFire function implementation
- Author:
- David Turanski
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintControls the maximum number of results sent at one time.booleanAttribute used to configure whether theFunctionis HA (Highly Available).booleanNormally follows the method return type, i.e.booleanAttribute to configure whether theFunctionis optimized for write operations.String[]Returns the list ofResourcePermissionrequired by thisFunction. -
Field Summary
Fields
-
Field Details
-
DEFAULT_RESOURCE_PERMISSION
- See Also:
-
-
Element Details
-
id
String id- 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 theFunctionis HA (Highly Available).- Returns:
- a boolean value configuring whether the defined
Functionis HA. - See Also:
- Default:
- false
-
hasResult
boolean hasResultNormally follows the method return type, i.e. false ifvoid, true otherwise. This allows overriding avoidmethod which uses theResultSenderdirectly.- Returns:
- a boolean value indicating if the
Functionis expected to return a result. - See Also:
- Default:
- false
-
optimizeForWrite
boolean optimizeForWriteAttribute to configure whether theFunctionis optimized for write operations.- Returns:
- a boolean value indicating if the
Functionis configured for optimized write operations. - See Also:
- Default:
- false
-
requiredPermissions
String[] requiredPermissionsReturns the list ofResourcePermissionrequired by thisFunction. By default,Functionsrequire DATA:WRITE permission.- Default:
- {"DATA:WRITE"}
-