A context may have an associated Deadline at which it will be automatically cancelled. @return A io.grpc.Deadline or null if no deadline is set.
()
| 487 | * @return A {@link io.grpc.Deadline} or {@code null} if no deadline is set. |
| 488 | */ |
| 489 | public Deadline getDeadline() { |
| 490 | if (cancellableAncestor == null) { |
| 491 | return null; |
| 492 | } |
| 493 | return cancellableAncestor.getDeadline(); |
| 494 | } |
| 495 | |
| 496 | /** |
| 497 | * Add a listener that will be notified when the context becomes cancelled. |
no outgoing calls