• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

10.26
/src/main/java/com/box/sdkgen/schemas/realtimeserver/RealtimeServer.java
1
package com.box.sdkgen.schemas.realtimeserver;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.fasterxml.jackson.annotation.JsonFilter;
6
import com.fasterxml.jackson.annotation.JsonProperty;
7
import java.util.Objects;
8

9
/** A real-time server that can be used for long polling user events. */
10
@JsonFilter("nullablePropertyFilter")
11
public class RealtimeServer extends SerializableObject {
12

13
  /** The value will always be `realtime_server`. */
14
  protected String type;
15

16
  /** The URL for the server. */
17
  protected String url;
18

19
  /** The time in minutes for which this server is available. */
20
  protected String ttl;
21

22
  /**
23
   * The maximum number of retries this server will allow before a new long poll should be started
24
   * by getting a [new list of server](#options-events).
25
   */
26
  @JsonProperty("max_retries")
27
  protected String maxRetries;
28

29
  /**
30
   * The maximum number of seconds without a response after which you should retry the long poll
31
   * connection.
32
   *
33
   * <p>This helps to overcome network issues where the long poll looks to be working but no
34
   * packages are coming through.
35
   */
36
  @JsonProperty("retry_timeout")
37
  protected Long retryTimeout;
38

39
  public RealtimeServer() {
40
    super();
1✔
41
  }
1✔
42

43
  protected RealtimeServer(Builder builder) {
44
    super();
×
45
    this.type = builder.type;
×
46
    this.url = builder.url;
×
47
    this.ttl = builder.ttl;
×
48
    this.maxRetries = builder.maxRetries;
×
49
    this.retryTimeout = builder.retryTimeout;
×
50
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
51
  }
×
52

53
  public String getType() {
54
    return type;
1✔
55
  }
56

57
  public String getUrl() {
58
    return url;
1✔
59
  }
60

61
  public String getTtl() {
62
    return ttl;
×
63
  }
64

65
  public String getMaxRetries() {
66
    return maxRetries;
×
67
  }
68

69
  public Long getRetryTimeout() {
70
    return retryTimeout;
×
71
  }
72

73
  @Override
74
  public boolean equals(Object o) {
75
    if (this == o) {
×
76
      return true;
×
77
    }
78
    if (o == null || getClass() != o.getClass()) {
×
79
      return false;
×
80
    }
81
    RealtimeServer casted = (RealtimeServer) o;
×
82
    return Objects.equals(type, casted.type)
×
83
        && Objects.equals(url, casted.url)
×
84
        && Objects.equals(ttl, casted.ttl)
×
85
        && Objects.equals(maxRetries, casted.maxRetries)
×
86
        && Objects.equals(retryTimeout, casted.retryTimeout);
×
87
  }
88

89
  @Override
90
  public int hashCode() {
91
    return Objects.hash(type, url, ttl, maxRetries, retryTimeout);
×
92
  }
93

94
  @Override
95
  public String toString() {
96
    return "RealtimeServer{"
×
97
        + "type='"
98
        + type
99
        + '\''
100
        + ", "
101
        + "url='"
102
        + url
103
        + '\''
104
        + ", "
105
        + "ttl='"
106
        + ttl
107
        + '\''
108
        + ", "
109
        + "maxRetries='"
110
        + maxRetries
111
        + '\''
112
        + ", "
113
        + "retryTimeout='"
114
        + retryTimeout
115
        + '\''
116
        + "}";
117
  }
118

119
  public static class Builder extends NullableFieldTracker {
×
120

121
    protected String type;
122

123
    protected String url;
124

125
    protected String ttl;
126

127
    protected String maxRetries;
128

129
    protected Long retryTimeout;
130

131
    public Builder type(String type) {
132
      this.type = type;
×
133
      return this;
×
134
    }
135

136
    public Builder url(String url) {
137
      this.url = url;
×
138
      return this;
×
139
    }
140

141
    public Builder ttl(String ttl) {
142
      this.ttl = ttl;
×
143
      return this;
×
144
    }
145

146
    public Builder maxRetries(String maxRetries) {
147
      this.maxRetries = maxRetries;
×
148
      return this;
×
149
    }
150

151
    public Builder retryTimeout(Long retryTimeout) {
152
      this.retryTimeout = retryTimeout;
×
153
      return this;
×
154
    }
155

156
    public RealtimeServer build() {
157
      return new RealtimeServer(this);
×
158
    }
159
  }
160
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc