Class ServiceContextImpl

    • Method Detail

      • name

        public String name()
        Gets service name.
        Specified by:
        name in interface ServiceContext
        Returns:
        Service name.
      • executionId

        public UUID executionId()
        Gets service execution ID. Execution ID is guaranteed to be unique across all service deployments.
        Specified by:
        executionId in interface ServiceContext
        Returns:
        Service execution ID.
      • isCancelled

        public boolean isCancelled()
        Get flag indicating whether service has been cancelled or not.
        Specified by:
        isCancelled in interface ServiceContext
        Returns:
        Flag indicating whether service has been cancelled or not.
      • cacheName

        @Nullable
        public @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.
        Specified by:
        cacheName in interface ServiceContext
        Returns:
        Cache name, possibly null.
      • affinityKey

        @Nullable
        public <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.
        Specified by:
        affinityKey in interface ServiceContext
        Type Parameters:
        K - Affinity key type.
        Returns:
        Affinity key, possibly null.
      • setCancelled

        public void setCancelled​(boolean isCancelled)
        Parameters:
        isCancelled - Cancelled flag.