org.springframework.data.gemfire.function.annotation
Annotation Type GemfireFunction


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface GemfireFunction

Used to declare a concrete method as a GemFire function implementation


Optional Element Summary
 int batchSize
          controls the maximum number of results sent at one time
 boolean HA
          is the function HA - highly available
 boolean hasResult
          normally follows the method return type, i.e., false if void, true otherwise.
 String id
          The name of the registered function.
 boolean optimizeForWrite
          is the function optimized for write operations
 

id

public abstract String id
The name of the registered function. If not provided the simple method name will be used

Returns:
the function id
Default:
""

HA

public abstract boolean HA
is the function HA - highly available

Default:
false

optimizeForWrite

public abstract boolean optimizeForWrite
is the function optimized for write operations

Default:
false

batchSize

public abstract int batchSize
controls the maximum number of results sent at one time

Default:
0

hasResult

public abstract boolean hasResult
normally follows the method return type, i.e., false if void, true otherwise. This allows overriding a void method which uses the resultSender directly.

Default:
false