org.apache.ignite.configuration

## Interface ConnectorMessageInterceptor

-     public interface ConnectorMessageInterceptor

  Interface for user-defined object interceptors.

  Interceptors allow user to transform objects send and received via REST protocols. For example they could be used for customized multi-language marshalling by converting binary object representation received from client to java object.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `@Nullable Object` | `onReceive(@Nullable Object obj)` Intercepts received objects.
    `@Nullable Object` | `onSend(Object obj)` Intercepts received objects.

- - ### Method Detail

    - #### onReceive

          @Nullable
          @Nullable Object onReceive(@Nullable
                                               @Nullable Object obj)

      Intercepts received objects.
      Parameters:
        `obj` - Original incoming object.
      Returns:
        Object which should replace original in later processing.

    - #### onSend

          @Nullable
          @Nullable Object onSend(Object obj)

      Intercepts received objects.
      Parameters:
        `obj` - Original incoming object.
      Returns:
        Object which should be send to remote client instead of original.

2022 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.13.0
Release Date | : April 20 2022