public interface FunctionContext<T1>
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)
.
RegionFunctionContext
Modifier and Type | Method and Description |
---|---|
T1 |
getArguments()
Returns the arguments provided to this function execution.
|
Cache |
getCache() |
String |
getFunctionId()
Returns the identifier of the function.
|
default String |
getMemberName()
a convenience method to get the name of the member this function executes on.
|
Object |
getPrincipal()
If available, returns the principal that has been authenticated to execute this function.
|
<T2> ResultSender<T2> |
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.
|
T1 getArguments()
Execution.setArguments(Object)
String getFunctionId()
Function.getId()
<T2> ResultSender<T2> getResultSender()
T2
- the type handled by the returned ResultSender
ResultSender
associated with this FunctionContext
boolean isPossibleDuplicate()
Function.isHA()
Cache getCache()
default String getMemberName()
Object getPrincipal()
LegacySecurityService
is in use.