Package io.vertx.grpc.common

## Class GrpcLocal

- java.lang.Object
- - io.vertx.grpc.common.GrpcLocal

-     public class GrpcLocal
      extends Object

  gRPC request local propagation.

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `static ContextLocal<GrpcLocal>` | `CONTEXT_LOCAL_KEY` | Context local key.

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `GrpcLocal​(long deadlineMillis)` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static GrpcLocal` | `current()` |
    `Instant` | `deadline()` |
    `static GrpcLocal` | `of​(Context context)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### CONTEXT_LOCAL_KEY

          public static final ContextLocal<GrpcLocal> CONTEXT_LOCAL_KEY

      Context local key.

  - ### Constructor Detail

    - #### GrpcLocal

          public GrpcLocal​(long deadlineMillis)

  - ### Method Detail

    - #### of

          public static GrpcLocal of​(Context context)

      Returns:
        the local associated with the given `context`

    - #### current

          public static GrpcLocal current()

      Returns:
        the current request local or `null`

    - #### deadline

          public Instant deadline()

      Returns:
        the deadline