Class ReceivedPackStatistics.Builder

java.lang.Object
org.eclipse.jgit.transport.ReceivedPackStatistics.Builder
Enclosing class:
ReceivedPackStatistics

public static class ReceivedPackStatistics.Builder extends Object
A builder for ReceivedPackStatistics.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setNumBytesRead

      public ReceivedPackStatistics.Builder setNumBytesRead(long numBytesRead)
      Set number of bytes read from the input stream
      Parameters:
      numBytesRead - number of bytes read from the input stream
      Returns:
      this
    • addWholeObject

      public ReceivedPackStatistics.Builder addWholeObject(int type)
      Increment a whole object count.
      Parameters:
      type - OBJ_COMMIT, OBJ_TREE, OBJ_BLOB, or OBJ_TAG
      Returns:
      this
    • addOffsetDelta

      public ReceivedPackStatistics.Builder addOffsetDelta()
      Increment offset delta
      Returns:
      this
    • addRefDelta

      public ReceivedPackStatistics.Builder addRefDelta()
      Increment ref delta
      Returns:
      this
    • addDeltaObject

      public ReceivedPackStatistics.Builder addDeltaObject(int type)
      Increment a delta object count.
      Parameters:
      type - OBJ_COMMIT, OBJ_TREE, OBJ_BLOB, or OBJ_TAG
      Returns:
      this