类 SelectEventVisitor
java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.model.select.SelectEventVisitor
Interface for a visitor over the events of the input stream
Those events not overriden do nothing.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidInforms that the server is still processing the Select request.voidInforms than the request has finished successfully.voidvisitProgressEvent(long bytesScanned, long bytesProcessed, long bytesReturned) Periodic progress informationvoidvisitRecordsEvent(ByteBuffer payload) Informs of the next chunk to be processed The content of the chunk is only known by the wire format input serialization format.voidvisitStatsEvent(long bytesScanned, long bytesProcessed, long bytesReturned) Final statistics when the request has finished successfully
-
构造器详细资料
-
SelectEventVisitor
public SelectEventVisitor()
-
-
方法详细资料
-
visitRecordsEvent
Informs of the next chunk to be processed The content of the chunk is only known by the wire format input serialization format. The purpose of this method is for monitoring of the chunk sizes or for backup of the input data.- 参数:
payload- Buffer with the next chunk of the input stream
-
visitContinuationEvent
public void visitContinuationEvent()Informs that the server is still processing the Select request. Used internally to maintain the connection alive. Optionally, the the receiver can abort after some user-defined timeout -
visitProgressEvent
public void visitProgressEvent(long bytesScanned, long bytesProcessed, long bytesReturned) Periodic progress information- 参数:
bytesScanned- Current number of input bytes scanned by the serverbytesProcessed- Current number of input bytes processed by the server, less than or equal than the scanned bytes.bytesReturned- Current number of bytes returned as chunks by the server
-
visitStatsEvent
public void visitStatsEvent(long bytesScanned, long bytesProcessed, long bytesReturned) Final statistics when the request has finished successfully- 参数:
bytesScanned- Total number of input bytes scanned by the serverbytesProcessed- Total number of input bytes processed by the server, less than or equal than the scanned bytes.bytesReturned- Total number of bytes returned as chunks by the server
-
visitEndEvent
public void visitEndEvent()Informs than the request has finished successfully.
-