public interface RegionFunctionContext extends FunctionContext
Function
.
Applications can use the methods provided to retrieve the Region and context specific routing
objects. When the function is executed using FunctionService.onRegion(Region)
, the
FunctionContext
can be typecast to this type.
If the region is a partitioned region, PartitionRegionHelper
can be used to get local and
colocated data references.
FunctionContext
,
PartitionRegionHelper
Modifier and Type | Method and Description |
---|---|
<K,V> Region<K,V> |
getDataSet()
Returns the reference to the Region on which the function is executed
|
Set<?> |
getFilter()
Returns subset of keys (filter) provided by the invoking thread (aka routing objects).
|
getArguments, getCache, getFunctionId, getMemberName, getPrincipal, getResultSender, isPossibleDuplicate
Set<?> getFilter()
Execution.withFilter(Set)
<K,V> Region<K,V> getDataSet()
K
- the key type for the Region
V
- the value type for the Region
FunctionService.onRegion(Region)