class Crabbit::SuperStreamPublishHandle

Overview

Aggregate confirmation handle for a super-stream publish.

Most routing strategies select one partition, but a custom strategy can publish to several. This handle exposes one PublishHandle per selected partition.

Defined in:

crabbit/super_stream.cr

Instance Method Summary

Instance Method Detail

def await(timeout : Time::Span = 30.seconds) : Array(Confirmation) #

Waits for every partition confirmation within one shared timeout.


[View source]
def completed? : Bool #

Returns whether every partition publish has completed.


[View source]
def handles : Array(PublishHandle) #

Returns the partition publish handles.


[View source]
def on_confirm(&callback : Confirmation -> ) : self #

Registers callback on every partition publish and returns self.


[View source]