public interface ServiceContext extends Serializable
Service.execute(ServiceContext)
and Service.cancel(ServiceContext)
methods and contains information about specific service
execution.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.
|
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()
null
.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019