You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge branch 'revert-b77d16aa' into 'internal_main'
Revert "Merge branch 'refactor/push-message-slot-rename' into 'internal_main'"
See merge request client-projets/p.2026-plotjuggler/plotjuggler_core!193
@@ -417,7 +415,7 @@ changes, only a different config value.
417
415
callback for flushing accumulated data. The host calls it periodically from
418
416
its own thread. For sources with asynchronous I/O (sockets, hardware), the
419
417
plugin must manage its own receive thread and use `onPoll()` as the sync
420
-
point where buffered data is handed off. Host methods (`pushMessage`,
418
+
point where buffered data is handed off. Host methods (`pushRawMessage`,
421
419
`appendRecord`, etc.) must only be called from `onPoll()` / the host's
422
420
thread, never from the background thread.
423
421
@@ -427,7 +425,7 @@ Key traits of `StreamSourceBase`:
427
425
-`onStart()` opens connections and creates topics or parser bindings.
428
426
-`onPoll()` flushes buffered data into the host — drain what your plugin
429
427
has accumulated and return immediately. Must not block. Host methods
430
-
(`pushMessage`, `appendRecord`, etc.) may only be called from this
428
+
(`pushRawMessage`, `appendRecord`, etc.) may only be called from this
431
429
callback.
432
430
-`onStop()` tears down connections. Must be idempotent.
433
431
-`stop()`, `start()`, `poll()`, and `currentState()` are managed by the
@@ -467,7 +465,7 @@ Access via `runtimeHost()`. Use this for lifecycle coordination and diagnostics.
467
465
|`requestStop(terminal_state, reason)`| Ask the host to stop you (self-terminate). |
468
466
|`isStopRequested()`| Check if the host wants you to stop. |
469
467
|`ensureParserBinding(request)`| Bind a parser for delegated ingest (see below). |
470
-
|`pushMessage(handle, timestamp, fetch_message_data)`| Push a message through a parser binding via a deferred fetcher callable; the host invokes it per the active ObjectIngestPolicy (eager/lazy). |
468
+
|`pushRawMessage(handle, timestamp, payload)`| Push raw bytes through a parser binding. |
471
469
472
470
## Optional Features
473
471
@@ -545,9 +543,8 @@ auto binding = runtimeHost().ensureParserBinding({
545
543
});
546
544
if (!binding) { return PJ::unexpected(binding.error()); }
547
545
548
-
// 2. Push payloads — the host invokes the fetcher and parses/stores per policy
0 commit comments