pub trait EventProducerService: Send + Sync + 'static {
type EventsBySlicesStream: Stream<Item = Result<StreamOut, Status>> + Send + 'static;
// Required methods
fn events_by_slices<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<StreamIn>>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::EventsBySlicesStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn event_timestamp<'life0, 'async_trait>(
&'life0 self,
request: Request<EventTimestampRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<EventTimestampResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn load_event<'life0, 'async_trait>(
&'life0 self,
request: Request<LoadEventRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<LoadEventResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Generated trait containing gRPC methods that should be implemented for use with EventProducerServiceServer.
Required Associated Types§
Required Methods§
fn events_by_slices<'life0, 'async_trait>( &'life0 self, request: Request<Streaming<StreamIn>> ) -> Pin<Box<dyn Future<Output = Result<Response<Self::EventsBySlicesStream>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
sourcefn event_timestamp<'life0, 'async_trait>(
&'life0 self,
request: Request<EventTimestampRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<EventTimestampResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn event_timestamp<'life0, 'async_trait>( &'life0 self, request: Request<EventTimestampRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<EventTimestampResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Used in some edge cases by the offset store to retrieve the timestamp for a certain event.
sourcefn load_event<'life0, 'async_trait>(
&'life0 self,
request: Request<LoadEventRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<LoadEventResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn load_event<'life0, 'async_trait>( &'life0 self, request: Request<LoadEventRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<LoadEventResponse>, Status>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Lazy loading of a specific event.