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);
}
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);
}
Aggregations