GemFire 7.0.1

com.gemstone.gemfire.cache.execute
Interface FunctionContext

All Known Subinterfaces:
RegionFunctionContext

public interface FunctionContext

Defines the execution context of a Function. It is required by the Function.execute(FunctionContext) to execute a Function on a particular member.

A context can be data dependent or data independent. For data dependent functions refer to RegionFunctionContext

This interface is implemented by GemFire. Instances of it will be passed in to Function.execute(FunctionContext).

Since:
6.0
See Also:
RegionFunctionContext

Method Summary
 Object getArguments()
          Returns the arguments provided to this function execution.
 String getFunctionId()
          Returns the identifier of the function.
<T> ResultSender<T>
getResultSender()
          Returns the ResultSender which is used to add the ability for an execute method to send a single result back, or break its result into multiple pieces and send each piece back to the calling thread's ResultCollector.
 boolean isPossibleDuplicate()
          Returns a boolean to identify whether this is a re-execute.
 

Method Detail

getArguments

Object getArguments()
Returns the arguments provided to this function execution. These are the arguments specified by the caller using Execution.withArgs(Object)

Returns:
the arguments or null if there are no arguments
Since:
6.0

getFunctionId

String getFunctionId()
Returns the identifier of the function.

Returns:
a unique identifier
Since:
6.0
See Also:
Function.getId()

getResultSender

<T> ResultSender<T> getResultSender()
Returns the ResultSender which is used to add the ability for an execute method to send a single result back, or break its result into multiple pieces and send each piece back to the calling thread's ResultCollector.

Returns:
ResultSender
Since:
6.0

isPossibleDuplicate

boolean isPossibleDuplicate()
Returns a boolean to identify whether this is a re-execute. Returns true if it is a re-execute else returns false

Returns:
a boolean (true) to identify whether it is a re-execute (else false)
Since:
6.5
See Also:
Function.isHA()

GemFire 7.0.1

Copyright © 1997-2013 VMware, Inc. All rights reserved.