Interface IComputeTaskSession
Stores custom compute task attributes. Specific compute task implementations must be annotated with the
ComputeTaskSessionFullSupportAttribute to enable distributing the task attributes to the compute
jobs that the task creates.
Assembly: Apache.Ignite.Core.dll
Syntax
public interface IComputeTaskSession
Methods
GetAttribute<TK, TV>(TK)
Gets the value of the given key or null
if the key does not exist.
Declaration
TV GetAttribute<TK, TV>(TK key)
Parameters
Type |
Name |
Description |
TK |
key |
|
Returns
Type Parameters
SetAttributes<TK, TV>(KeyValuePair<TK, TV>[])
Stores the collection of attributes.
Declaration
void SetAttributes<TK, TV>(params KeyValuePair<TK, TV>[] attrs)
Parameters
Type |
Name |
Description |
KeyValuePair<TK, TV>[] |
attrs |
|
Type Parameters