Annotation Interface GemfireFunction


@Retention(RUNTIME) @Target(METHOD) public @interface GemfireFunction
Used to declare a concrete method as a GemFire function implementation
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Controls the maximum number of results sent at one time.
    boolean
    Attribute used to configure whether the Function is HA (Highly Available).
    boolean
    Normally follows the method return type, i.e.
    The name of the registered Function.
    boolean
    Attribute to configure whether the Function is optimized for write operations.
    Returns the list of ResourcePermission required by this Function.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Field Details

  • Element Details

    • id

      String id
      The name of the registered Function. If not provided the simple method name will be used.
      Returns:
      the Function id.
      See Also:
      • Function.getId()
      Default:
      ""
    • batchSize

      int batchSize
      Controls 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 HA
      Attribute used to configure whether the Function is HA (Highly Available).
      Returns:
      a boolean value configuring whether the defined Function is HA.
      See Also:
      • Function.isHA()
      Default:
      false
    • hasResult

      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.
      Returns:
      a boolean value indicating if the Function is expected to return a result.
      See Also:
      • Function.hasResult()
      Default:
      false
    • optimizeForWrite

      boolean optimizeForWrite
      Attribute to configure whether the Function 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[] requiredPermissions
      Returns the list of ResourcePermission required by this Function. By default, Functions require DATA:WRITE permission.
      Default:
      {"DATA:WRITE"}