Search in sources :

Example 1 with PlatformMessageFilter

use of org.apache.ignite.internal.processors.platform.message.PlatformMessageFilter in project ignite by apache.

the class PlatformMessaging method startRemoteListenAsync.

/**
 * Starts the remote listener.
 * @param reader Reader.
 * @param messaging Messaging.
 * @return Future of the operation.
 */
private IgniteFuture<UUID> startRemoteListenAsync(BinaryRawReaderEx reader, IgniteMessaging messaging) {
    Object nativeFilter = reader.readObjectDetached();
    // interop pointer
    long ptr = reader.readLong();
    Object topic = reader.readObjectDetached();
    PlatformMessageFilter filter = platformCtx.createRemoteMessageFilter(nativeFilter, ptr);
    return messaging.remoteListenAsync(topic, filter);
}
Also used : PlatformMessageFilter(org.apache.ignite.internal.processors.platform.message.PlatformMessageFilter)

Example 2 with PlatformMessageFilter

use of org.apache.ignite.internal.processors.platform.message.PlatformMessageFilter in project ignite by apache.

the class PlatformMessaging method startRemoteListen.

/**
 * Starts the remote listener.
 * @param reader Reader.
 * @param messaging Messaging.
 * @return Listen id.
 */
private UUID startRemoteListen(BinaryRawReaderEx reader, IgniteMessaging messaging) {
    Object nativeFilter = reader.readObjectDetached();
    // interop pointer
    long ptr = reader.readLong();
    Object topic = reader.readObjectDetached();
    PlatformMessageFilter filter = platformCtx.createRemoteMessageFilter(nativeFilter, ptr);
    return messaging.remoteListen(topic, filter);
}
Also used : PlatformMessageFilter(org.apache.ignite.internal.processors.platform.message.PlatformMessageFilter)

Aggregations

PlatformMessageFilter (org.apache.ignite.internal.processors.platform.message.PlatformMessageFilter)2