![JAR search and dependency download from the Maven repository](/logo.png)
org.apache.rocketmq.common.constant.GrpcConstants Maven / Gradle / Ivy
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.rocketmq.common.constant;
import io.grpc.Context;
import io.grpc.Metadata;
public class GrpcConstants {
public static final Context.Key METADATA = Context.key("rpc-metadata");
/**
* Remote address key in attributes of call
*/
public static final Metadata.Key REMOTE_ADDRESS
= Metadata.Key.of("rpc-remote-address", Metadata.ASCII_STRING_MARSHALLER);
/**
* Local address key in attributes of call
*/
public static final Metadata.Key LOCAL_ADDRESS
= Metadata.Key.of("rpc-local-address", Metadata.ASCII_STRING_MARSHALLER);
public static final Metadata.Key AUTHORIZATION
= Metadata.Key.of("authorization", Metadata.ASCII_STRING_MARSHALLER);
public static final Metadata.Key NAMESPACE_ID
= Metadata.Key.of("x-mq-namespace", Metadata.ASCII_STRING_MARSHALLER);
public static final Metadata.Key DATE_TIME
= Metadata.Key.of("x-mq-date-time", Metadata.ASCII_STRING_MARSHALLER);
public static final Metadata.Key REQUEST_ID
= Metadata.Key.of("x-mq-request-id", Metadata.ASCII_STRING_MARSHALLER);
public static final Metadata.Key LANGUAGE
= Metadata.Key.of("x-mq-language", Metadata.ASCII_STRING_MARSHALLER);
public static final Metadata.Key CLIENT_VERSION
= Metadata.Key.of("x-mq-client-version", Metadata.ASCII_STRING_MARSHALLER);
public static final Metadata.Key PROTOCOL_VERSION
= Metadata.Key.of("x-mq-protocol", Metadata.ASCII_STRING_MARSHALLER);
public static final Metadata.Key RPC_NAME
= Metadata.Key.of("x-mq-rpc-name", Metadata.ASCII_STRING_MARSHALLER);
public static final Metadata.Key SIMPLE_RPC_NAME
= Metadata.Key.of("x-mq-simple-rpc-name", Metadata.ASCII_STRING_MARSHALLER);
public static final Metadata.Key SESSION_TOKEN
= Metadata.Key.of("x-mq-session-token", Metadata.ASCII_STRING_MARSHALLER);
public static final Metadata.Key CLIENT_ID
= Metadata.Key.of("x-mq-client-id", Metadata.ASCII_STRING_MARSHALLER);
public static final Metadata.Key AUTHORIZATION_AK
= Metadata.Key.of("x-mq-authorization-ak", Metadata.ASCII_STRING_MARSHALLER);
public static final Metadata.Key CHANNEL_ID
= Metadata.Key.of("x-mq-channel-id", Metadata.ASCII_STRING_MARSHALLER);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy