Interface ServiceContext

    • Method Detail

      • name

        String name()
        Gets service name.
        Returns:
        Service name.
      • executionId

        UUID executionId()
        Gets service execution ID. Execution ID is guaranteed to be unique across all service deployments.
        Returns:
        Service execution ID.
      • isCancelled

        boolean 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