risingwave_rpc_client

Type Alias SinkWriterStreamHandle

source
pub type SinkWriterStreamHandle<REQ = SinkWriterStreamRequest> = BidiStreamHandle<REQ, SinkWriterStreamResponse>;

Aliased Type§

struct SinkWriterStreamHandle<REQ = SinkWriterStreamRequest> {
    pub request_sender: BidiStreamSender<REQ>,
    pub response_stream: BidiStreamReceiver<SinkWriterStreamResponse>,
}

Fields§

§request_sender: BidiStreamSender<REQ>§response_stream: BidiStreamReceiver<SinkWriterStreamResponse>

Implementations§

source§

impl<REQ: From<SinkWriterStreamRequest>> SinkWriterStreamHandle<REQ>

source

pub async fn write_batch( &mut self, epoch: u64, batch_id: u64, payload: Payload, ) -> Result<()>

source

pub async fn barrier(&mut self, epoch: u64) -> Result<()>

source

pub async fn commit(&mut self, epoch: u64) -> Result<CommitResponse>