dubbo Constants 源码

  • 2022-10-20
  • 浏览 (287)

dubbo Constants 代码

文件路径:/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/Constants.java

/*
 * 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.dubbo.rpc.protocol.dubbo;

/**
 *
 */
public interface Constants {

    String SHARE_CONNECTIONS_KEY = "shareconnections";

    /**
     * By default, a consumer JVM instance and a provider JVM instance share a long TCP connection (except when connections are set),
     * which can set the number of long TCP connections shared to avoid the bottleneck of sharing a single long TCP connection.
     */
    String DEFAULT_SHARE_CONNECTIONS = "1";

    String DECODE_IN_IO_THREAD_KEY = "decode.in.io";

    boolean DEFAULT_DECODE_IN_IO_THREAD = false;

    /**
     * callback inst id
     */
    String CALLBACK_SERVICE_KEY = "callback.service.instid";

    String CALLBACK_SERVICE_PROXY_KEY = "callback.service.proxy";

    String IS_CALLBACK_SERVICE = "is_callback_service";

    /**
     * Invokers in channel's callback
     */
    String CHANNEL_CALLBACK_KEY = "channel.callback.invokers.key";

    /**
     * when this warning rises from invocation, program probably have a bug.
     */
    String LAZY_REQUEST_WITH_WARNING_KEY = "lazyclient_request_with_warning";

    boolean DEFAULT_LAZY_REQUEST_WITH_WARNING = false;


    String ON_CONNECT_KEY = "onconnect";

    String ON_DISCONNECT_KEY = "ondisconnect";

    String ASYNC_METHOD_INFO = "async-method-info";

}

相关信息

dubbo 源码目录

相关文章

dubbo CallbackServiceCodec 源码

dubbo ChannelWrappedInvoker 源码

dubbo DecodeableRpcInvocation 源码

dubbo DecodeableRpcResult 源码

dubbo DubboCodec 源码

dubbo DubboCodecSupport 源码

dubbo DubboCountCodec 源码

dubbo DubboExporter 源码

dubbo DubboInvoker 源码

dubbo DubboProtocol 源码

0  赞