public class StreamEventBuffer extends Object implements DataEventHandler, ControlEventHandler
| Constructor and Description |
|---|
StreamEventBuffer(EventBus eventBus) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(int vbucket)
Discard all buffered events in the given vbucket.
|
void |
onEvent(ChannelFlowController flowController,
io.netty.buffer.ByteBuf event)
Called when a data event happens.
|
void |
onStreamEnd(StreamEndEvent event) |
void |
setControlEventHandler(ControlEventHandler controlEventHandler) |
void |
setDataEventHandler(DataEventHandler dataEventHandler) |
public StreamEventBuffer(EventBus eventBus)
public void setDataEventHandler(DataEventHandler dataEventHandler)
public void setControlEventHandler(ControlEventHandler controlEventHandler)
public void onEvent(ChannelFlowController flowController, io.netty.buffer.ByteBuf event)
DataEventHandlerMake sure to release the buffers!!
onEvent in interface ControlEventHandleronEvent in interface DataEventHandlerflowController - the flow controller for the passed event.event - the data event happening right now.public void onStreamEnd(StreamEndEvent event)
public void clear(int vbucket)
Copyright © 2021 Couchbase, Inc.. All rights reserved.