MCPcopy Create free account
hub / github.com/grpc/grpc-java / offset

Method offset

api/src/context/java/io/grpc/Deadline.java:162–168  ·  view source on GitHub ↗
(long offset, TimeUnit units)

Source from the content-addressed store, hash-verified

160 // Deadline.after(100 * 365, DAYS).offset(100 * 365, DAYS) would be less than
161 // Deadline.after(-100 * 365, DAYS)
162 public Deadline offset(long offset, TimeUnit units) {
163 // May already be expired
164 if (offset == 0) {
165 return this;
166 }
167 return new Deadline(ticker, deadlineNanos, units.toNanos(offset), isExpired());
168 }
169
170 /**
171 * How much time is remaining in the specified time unit. Internal units are maintained as

Calls 1

isExpiredMethod · 0.95