Interface IPlatformTarget
Interface to interoperate with org.apache.ignite.internal.processors.platform.PlatformTarget on Java side.
Namespace: Apache.Ignite.Core.Interop
Assembly: Apache.Ignite.Core.dll
Syntax
public interface IPlatformTarget
Methods
DoOutOpAsync<T>(int, Action<IBinaryRawWriter>, Func<IBinaryRawReader, T>)
Performs asynchronous operation.
Declaration
Task<T> DoOutOpAsync<T>(int type, Action<IBinaryRawWriter> writeAction, Func<IBinaryRawReader, T> readAction)
Parameters
| Type | Name | Description |
|---|---|---|
| int | type | Operation type code. |
| Action<IBinaryRawWriter> | writeAction | Write action (can be null). |
| Func<IBinaryRawReader, T> | readAction | Read function (can be null). |
Returns
| Type | Description |
|---|---|
| Task<T> | Task. |
Type Parameters
| Name | Description |
|---|---|
| T | Result type |
DoOutOpAsync<T>(int, Action<IBinaryRawWriter>, Func<IBinaryRawReader, T>, CancellationToken)
Performs asynchronous operation.
Declaration
Task<T> DoOutOpAsync<T>(int type, Action<IBinaryRawWriter> writeAction, Func<IBinaryRawReader, T> readAction, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| int | type | Operation type code. |
| Action<IBinaryRawWriter> | writeAction | Write action (can be null). |
| Func<IBinaryRawReader, T> | readAction | Read function (can be null). |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<T> | Task. |
Type Parameters
| Name | Description |
|---|---|
| T | Result type |
InLongOutLong(int, long)
Performs InLongOutLong operation.
Declaration
long InLongOutLong(int type, long val)
Parameters
| Type | Name | Description |
|---|---|---|
| int | type | Operation type code. |
| long | val | Value. |
Returns
| Type | Description |
|---|---|
| long | Result. |
InObjectStreamOutObjectStream<T>(int, IPlatformTarget, Action<IBinaryRawWriter>, Func<IBinaryRawReader, IPlatformTarget, T>)
Performs InObjectStreamOutObjectStream operation.
Declaration
T InObjectStreamOutObjectStream<T>(int type, IPlatformTarget arg, Action<IBinaryRawWriter> writeAction, Func<IBinaryRawReader, IPlatformTarget, T> readAction)
Parameters
| Type | Name | Description |
|---|---|---|
| int | type | Operation type code. |
| IPlatformTarget | arg | Target argument. |
| Action<IBinaryRawWriter> | writeAction | Write action. |
| Func<IBinaryRawReader, IPlatformTarget, T> | readAction | Read action. |
Returns
| Type | Description |
|---|---|
| T | Result. |
Type Parameters
| Name | Description |
|---|---|
| T | Result type. |
InStreamOutLong(int, Action<IBinaryRawWriter>)
Performs InStreamOutLong operation.
Declaration
long InStreamOutLong(int type, Action<IBinaryRawWriter> writeAction)
Parameters
| Type | Name | Description |
|---|---|---|
| int | type | Operation type code. |
| Action<IBinaryRawWriter> | writeAction | Write action. |
Returns
| Type | Description |
|---|---|
| long | Result. |
InStreamOutObject(int, Action<IBinaryRawWriter>)
Performs InStreamOutObject operation.
Declaration
IPlatformTarget InStreamOutObject(int type, Action<IBinaryRawWriter> writeAction)
Parameters
| Type | Name | Description |
|---|---|---|
| int | type | Operation type code. |
| Action<IBinaryRawWriter> | writeAction | Write action. |
Returns
| Type | Description |
|---|---|
| IPlatformTarget | Result. |
InStreamOutStream<T>(int, Action<IBinaryRawWriter>, Func<IBinaryRawReader, T>)
Performs InStreamOutStream operation.
Declaration
T InStreamOutStream<T>(int type, Action<IBinaryRawWriter> writeAction, Func<IBinaryRawReader, T> readAction)
Parameters
| Type | Name | Description |
|---|---|---|
| int | type | Operation type code. |
| Action<IBinaryRawWriter> | writeAction | Write action. |
| Func<IBinaryRawReader, T> | readAction | Read action. |
Returns
| Type | Description |
|---|---|
| T | Result. |
Type Parameters
| Name | Description |
|---|---|
| T | Result type. |
OutObject(int)
Performs the OutObject operation.
Declaration
IPlatformTarget OutObject(int type)
Parameters
| Type | Name | Description |
|---|---|---|
| int | type | Operation type code. |
Returns
| Type | Description |
|---|---|
| IPlatformTarget | Result. |
OutStream<T>(int, Func<IBinaryRawReader, T>)
Performs OutStream operation.
Declaration
T OutStream<T>(int type, Func<IBinaryRawReader, T> readAction)
Parameters
| Type | Name | Description |
|---|---|---|
| int | type | Operation type code. |
| Func<IBinaryRawReader, T> | readAction | Read action. |
Returns
| Type | Description |
|---|---|
| T | Result. |
Type Parameters
| Name | Description |
|---|---|
| T | Result type. |