Show / Hide Table of Contents

# 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>(Int32, 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
--- | --- | ---
System.Int32 | type | Operation type code.
System.Action<IBinaryRawWriter> | writeAction | Write action (can be null).
System.Func<IBinaryRawReader, T> | readAction | Read function (can be null).

##### Returns

Type | Description
--- | ---
System.Threading.Tasks.Task<T> | Task.

##### Type Parameters

Name | Description
--- | ---
T | Result type

#### DoOutOpAsync<T>(Int32, 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
--- | --- | ---
System.Int32 | type | Operation type code.
System.Action<IBinaryRawWriter> | writeAction | Write action (can be null).
System.Func<IBinaryRawReader, T> | readAction | Read function (can be null).
System.Threading.CancellationToken | cancellationToken | The cancellation token.

##### Returns

Type | Description
--- | ---
System.Threading.Tasks.Task<T> | Task.

##### Type Parameters

Name | Description
--- | ---
T | Result type

#### InLongOutLong(Int32, Int64)

Performs InLongOutLong operation.

##### Declaration

    long InLongOutLong(int type, long val)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Int32 | type | Operation type code.
System.Int64 | val | Value.

##### Returns

Type | Description
--- | ---
System.Int64 | Result.

#### InObjectStreamOutObjectStream<T>(Int32, 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
--- | --- | ---
System.Int32 | type | Operation type code.
IPlatformTarget | arg | Target argument.
System.Action<IBinaryRawWriter> | writeAction | Write action.
System.Func<IBinaryRawReader, IPlatformTarget, T> | readAction | Read action.

##### Returns

Type | Description
--- | ---
T | Result.

##### Type Parameters

Name | Description
--- | ---
T | Result type.

#### InStreamOutLong(Int32, Action<IBinaryRawWriter>)

Performs InStreamOutLong operation.

##### Declaration

    long InStreamOutLong(int type, Action<IBinaryRawWriter> writeAction)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Int32 | type | Operation type code.
System.Action<IBinaryRawWriter> | writeAction | Write action.

##### Returns

Type | Description
--- | ---
System.Int64 | Result.

#### InStreamOutObject(Int32, Action<IBinaryRawWriter>)

Performs InStreamOutObject operation.

##### Declaration

    IPlatformTarget InStreamOutObject(int type, Action<IBinaryRawWriter> writeAction)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Int32 | type | Operation type code.
System.Action<IBinaryRawWriter> | writeAction | Write action.

##### Returns

Type | Description
--- | ---
IPlatformTarget | Result.

#### InStreamOutStream<T>(Int32, 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
--- | --- | ---
System.Int32 | type | Operation type code.
System.Action<IBinaryRawWriter> | writeAction | Write action.
System.Func<IBinaryRawReader, T> | readAction | Read action.

##### Returns

Type | Description
--- | ---
T | Result.

##### Type Parameters

Name | Description
--- | ---
T | Result type.

#### OutObject(Int32)

Performs the OutObject operation.

##### Declaration

    IPlatformTarget OutObject(int type)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Int32 | type | Operation type code.

##### Returns

Type | Description
--- | ---
IPlatformTarget | Result.

#### OutStream<T>(Int32, Func<IBinaryRawReader, T>)

Performs OutStream operation.

##### Declaration

    T OutStream<T>(int type, Func<IBinaryRawReader, T> readAction)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Int32 | type | Operation type code.
System.Func<IBinaryRawReader, T> | readAction | Read action.

##### Returns

Type | Description
--- | ---
T | Result.

##### Type Parameters

Name | Description
--- | ---
T | Result type.