Java Code Examples for io.grpc.Deadline#minimum()
The following examples show how to use
io.grpc.Deadline#minimum() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BinlogHelper.java From grpc-nebula-java with Apache License 2.0 | 5 votes |
private static Deadline min(@Nullable Deadline deadline0, @Nullable Deadline deadline1) { if (deadline0 == null) { return deadline1; } if (deadline1 == null) { return deadline0; } return deadline0.minimum(deadline1); }
Example 2
Source File: ClientCallImpl.java From grpc-nebula-java with Apache License 2.0 | 5 votes |
@Nullable private static Deadline min(@Nullable Deadline deadline0, @Nullable Deadline deadline1) { if (deadline0 == null) { return deadline1; } if (deadline1 == null) { return deadline0; } return deadline0.minimum(deadline1); }
Example 3
Source File: BinlogHelper.java From grpc-java with Apache License 2.0 | 5 votes |
private static Deadline min(@Nullable Deadline deadline0, @Nullable Deadline deadline1) { if (deadline0 == null) { return deadline1; } if (deadline1 == null) { return deadline0; } return deadline0.minimum(deadline1); }
Example 4
Source File: ClientCallImpl.java From grpc-java with Apache License 2.0 | 5 votes |
@Nullable private static Deadline min(@Nullable Deadline deadline0, @Nullable Deadline deadline1) { if (deadline0 == null) { return deadline1; } if (deadline1 == null) { return deadline0; } return deadline0.minimum(deadline1); }