Class MessageSettings.Builder

java.lang.Object
com.mongodb.internal.connection.MessageSettings.Builder
Enclosing class:
MessageSettings

@NotThreadSafe @Deprecated(since="2021-05-27") public static final class MessageSettings.Builder extends Object
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A MessageSettings builder.
  • Constructor Details

    • Builder

      public Builder()
      Deprecated.
  • Method Details

    • build

      public MessageSettings build()
      Deprecated.
      Build it.
      Returns:
      the message settings
    • maxDocumentSize

      public MessageSettings.Builder maxDocumentSize(int maxDocumentSize)
      Deprecated.
      Sets the maximum document size allowed.
      Parameters:
      maxDocumentSize - the maximum document size allowed
      Returns:
      this
    • maxMessageSize

      public MessageSettings.Builder maxMessageSize(int maxMessageSize)
      Deprecated.
      Sets the maximum message size allowed.
      Parameters:
      maxMessageSize - the maximum message size allowed
      Returns:
      this
    • maxBatchCount

      public MessageSettings.Builder maxBatchCount(int maxBatchCount)
      Deprecated.
      Sets the maximum number of items in a batch allowed.
      Parameters:
      maxBatchCount - the maximum number of items in a batch allowed
      Returns:
      this
    • maxWireVersion

      public MessageSettings.Builder maxWireVersion(int maxWireVersion)
      Deprecated.
    • serverType

      public MessageSettings.Builder serverType(ServerType serverType)
      Deprecated.