com.alibaba.dubbo.rpc.Invocation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dubbo-compatible Show documentation
Show all versions of dubbo-compatible Show documentation
The compatible module of dubbo project
/*
* 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 com.alibaba.dubbo.rpc;
import org.apache.dubbo.rpc.model.ServiceModel;
import java.beans.Transient;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Consumer;
@Deprecated
public interface Invocation extends org.apache.dubbo.rpc.Invocation {
@Override
Invoker> getInvoker();
default org.apache.dubbo.rpc.Invocation getOriginal() {
return null;
}
@Override
default void setAttachment(String key, String value) {
setObjectAttachment(key, value);
}
@Override
default void setAttachmentIfAbsent(String key, String value) {
setObjectAttachmentIfAbsent(key, value);
}
@Override
default void setObjectAttachmentIfAbsent(String key, Object value) {}
@Override
default void setObjectAttachment(String key, Object value) {}
@Override
default void setAttachment(String key, Object value) {
setObjectAttachment(key, value);
}
@Override
default void setAttachmentIfAbsent(String key, Object value) {
setObjectAttachmentIfAbsent(key, value);
}
@Override
default String getServiceName() {
return null;
}
@Override
default String getTargetServiceUniqueName() {
return null;
}
@Override
default String getAttachment(String key, String defaultValue) {
return null;
}
@Override
default void setServiceModel(ServiceModel serviceModel) {}
@Override
default ServiceModel getServiceModel() {
return null;
}
@Override
default Object put(Object key, Object value) {
return null;
}
@Override
default Object get(Object key) {
return null;
}
@Override
default Map