public interface ServiceContext extends Serializable
ServiceContextResource
annotation and contains
information about specific service execution.ServiceContextResource
Modifier and Type | Method and Description |
---|---|
<K> K |
affinityKey()
Gets affinity key used for key-to-node affinity calculation.
|
@Nullable String |
cacheName()
Gets cache name used for key-to-node affinity calculation.
|
@Nullable ServiceCallContext |
currentCallContext()
Gets context of the current service call.
|
UUID |
executionId()
Gets service execution ID.
|
boolean |
isCancelled()
Get flag indicating whether service has been cancelled or not.
|
String |
name()
Gets service name.
|
String name()
UUID executionId()
boolean isCancelled()
@Nullable @Nullable String cacheName()
null
.@Nullable <K> K affinityKey()
K
- Affinity key type.null
.@Nullable @Nullable ServiceCallContext currentCallContext()
null
.ServiceCallContext
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023