Package org.apache.ignite.services
Interface ServiceContext
- 
- All Superinterfaces:
- Serializable
 
 public interface ServiceContext extends Serializable Service execution context. This context is provided usingServiceContextResourceannotation and contains information about specific service execution.- See Also:
- ServiceContextResource
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description <K> KaffinityKey()Gets affinity key used for key-to-node affinity calculation.@Nullable StringcacheName()Gets cache name used for key-to-node affinity calculation.@Nullable ServiceCallContextcurrentCallContext()Gets context of the current service call.UUIDexecutionId()Gets service execution ID.booleanisCancelled()Get flag indicating whether service has been cancelled or not.Stringname()Gets service name.
 
- 
- 
- 
Method Detail- 
nameString name() Gets service name.- Returns:
- Service name.
 
 - 
executionIdUUID executionId() Gets service execution ID. Execution ID is guaranteed to be unique across all service deployments.- Returns:
- Service execution ID.
 
 - 
isCancelledboolean isCancelled() Get flag indicating whether service has been cancelled or not.- Returns:
- Flag indicating whether service has been cancelled or not.
 
 - 
cacheName@Nullable @Nullable String cacheName() Gets cache name used for key-to-node affinity calculation. This parameter is optional and is set only when key-affinity service was deployed.- Returns:
- Cache name, possibly null.
 
 - 
affinityKey@Nullable <K> K affinityKey() Gets affinity key used for key-to-node affinity calculation. This parameter is optional and is set only when key-affinity service was deployed.- Type Parameters:
- K- Affinity key type.
- Returns:
- Affinity key, possibly null.
 
 - 
currentCallContext@Nullable @Nullable ServiceCallContext currentCallContext() Gets context of the current service call.- Returns:
- Context of the current service call, possibly null.
- See Also:
- ServiceCallContext
 
 
- 
 
-