net.hasor.rsf.RsfBindInfo Maven / Gradle / Ivy
/*
* Copyright 2008-2009 the original author or authors.
*
* Licensed 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 net.hasor.rsf;
import net.hasor.core.BindInfo;
import net.hasor.rsf.domain.RsfServiceType;
import java.util.Set;
/**
* Rsf绑定信息。
* @version : 2014年11月12日
* @author 赵永春 ([email protected])
*/
public interface RsfBindInfo extends BindInfo {
/** @return 唯一标识(客户端唯一标识)。*/
public String getBindID();
/** @return 服务名称。*/
public String getBindName();
/** @return 获取已经定义的别名 */
public Set getAliasTypes();
/** @return 别名 */
public String getAliasName(String aliasType);
/** @return 服务分组。*/
public String getBindGroup();
/** @return 服务版本。*/
public String getBindVersion();
/** @return 注册的服务类型。*/
public Class getBindType();
/** @return 是提供者还是消费者*/
public RsfServiceType getServiceType();
/** @return 指定使用的RPC通信协议,如果为空表示没有特殊指定。RSF将使用 RsfContext.runProtocols()*/
public Set getBindProtocols();
/**
* 返回接口是否为一个 Message 接口。
* @see RsfMessage
*/
public boolean isMessage();
/** 接口是否要求工作在隐藏模式下。*/
public boolean isShadow();
/** @return 获取客户端调用服务超时时间。*/
public int getClientTimeout();
/** @return 获取序列化方式*/
public String getSerializeType();
/** 服务的执行线程池是否为共享线程池。 */
public boolean isSharedThreadPool();
}