public class InjvmProtocol extends AbstractProtocol implements Protocol
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT |
static String |
NAME |
| Constructor and Description |
|---|
InjvmProtocol() |
| Modifier and Type | Method and Description |
|---|---|
<T> Exporter<T> |
export(Invoker<T> invoker)
Export service for remote invocation:
1. |
int |
getDefaultPort()
Get default port when user doesn't config the port.
|
static InjvmProtocol |
getInjvmProtocol() |
boolean |
isInjvmRefer(URL url) |
<T> Invoker<T> |
protocolBindingRefer(Class<T> serviceType,
URL url) |
destroy, referpublic static final String NAME
public static final int DEFAULT_PORT
public static InjvmProtocol getInjvmProtocol()
public int getDefaultPort()
ProtocolgetDefaultPort in interface Protocolpublic <T> Exporter<T> export(Invoker<T> invoker) throws RpcException
Protocolexport in interface ProtocolT - Service typeinvoker - Service invokerRpcException - thrown when error occurs during export the service, for example: port is occupiedpublic <T> Invoker<T> protocolBindingRefer(Class<T> serviceType, URL url) throws RpcException
RpcExceptionpublic boolean isInjvmRefer(URL url)
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.