Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::LogBookmarkProvider Class Referenceabstract

Bounded worker extension for log positions; unrelated to total extent. The provider owns its logical resource. Capture and resolve run on the existing application worker and must never retain borrowed commands or row payload. More...

#include <log_navigation.hpp>

Inheritance diagram for portals::LogBookmarkProvider:
portals::LogBookmarkProviderportals::LogBookmarkProvider portals::PositionResolver portals::FileLogModel

Public Member Functions

virtual ModelResource resource () const noexcept=0
virtual std::expected< ModelBookmark, SourceError > capture (const SourceReadCommand &command, const WindowRow< LogLine > &row, BookmarkOptions options, std::stop_token stop={}) const =0
virtual std::expected< PositionReply, SourceError > resolveLog (const PositionRequest &request, std::weak_ptr< const WindowNotifier< LogLine > > readiness, std::stop_token stop={}) const
virtual std::expected< SourceAnchor, SourceError > readAnchor (const PositionReply &reply, SourceStamp session) const
Public Member Functions inherited from portals::PositionResolver
virtual ~PositionResolver ()=default
 Release only the resolver's own bounded metadata.
virtual std::expected< PositionReply, SourceError > resolve (const PositionRequest &request, std::stop_token stop={}) const =0

Detailed Description

Bounded worker extension for log positions; unrelated to total extent. The provider owns its logical resource. Capture and resolve run on the existing application worker and must never retain borrowed commands or row payload.

Member Function Documentation

◆ capture()

virtual std::expected< ModelBookmark, SourceError > portals::LogBookmarkProvider::capture ( const SourceReadCommand & command,
const WindowRow< LogLine > & row,
BookmarkOptions options,
std::stop_token stop = {} ) const
pure virtual
Parameters
commandDelivery session and exact requested revision.
rowImmutable logical record borrowed for this call only.
optionsMaximum owning metadata allocation, including its envelope.
stopCooperative worker cancellation.
Returns
Owning bookmark, or typed unsupported/history/allocation failure.

Implemented in portals::FileLogModel.

◆ readAnchor()

virtual std::expected< SourceAnchor, SourceError > portals::LogBookmarkProvider::readAnchor ( const PositionReply & reply,
SourceStamp session ) const
inlinevirtual
Parameters
replyQualified resolved position.
sessionCurrent delivery namespace.
Returns
Worker-created transport anchor; cursor providers may override this mapping. The default requires ITEM positions and the transport's seekRow capability.

◆ resolveLog()

virtual std::expected< PositionReply, SourceError > portals::LogBookmarkProvider::resolveLog ( const PositionRequest & request,
std::weak_ptr< const WindowNotifier< LogLine > > readiness,
std::stop_token stop = {} ) const
inlinevirtual
Parameters
requestOwning exact-resolution request on the application worker.
readinessExisting weak source notifier; a pending provider may copy it and publish a strictly newer data revision when bounded resolution becomes available.
stopCooperative worker cancellation.
Returns
Qualified outcome; the default delegates to PositionResolver::resolve. Keeping the notifier does not retain a scene, source session or runtime.

◆ resource()

virtual ModelResource portals::LogBookmarkProvider::resource ( ) const
pure virtualnoexcept
Returns
Stable logical resource; obtaining it performs no I/O.

Implemented in portals::FileLogModel.


The documentation for this class was generated from the following file: