java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.model.select.SelectEventVisitor

public class SelectEventVisitor extends Object
Interface for a visitor over the events of the input stream Those events not overriden do nothing.
  • 构造器详细资料

    • SelectEventVisitor

      public SelectEventVisitor()
  • 方法详细资料

    • visitRecordsEvent

      public void visitRecordsEvent(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. 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 server
      bytesProcessed - 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 server
      bytesProcessed - 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.