Package io.hekate.rpc
Class RpcInterfaceInfo<T>
- java.lang.Object
-
- io.hekate.rpc.RpcInterfaceInfo<T>
-
- Type Parameters:
T
- Interface type.
public class RpcInterfaceInfo<T> extends Object
Meta-information about anRpc
-annotated interface.- See Also:
RpcServerInfo.interfaces()
-
-
Constructor Summary
Constructors Constructor Description RpcInterfaceInfo(Class<T> javaType, int version, int minClientVersion, List<RpcMethodInfo> methods)
Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<T>
javaType()
Returns the Java type of this RPC interface.List<RpcMethodInfo>
methods()
Returns the meta-information about this RPC interface's methods.int
minClientVersion()
Returns the minimum client version that is supported by this RPC interface.String
name()
Returns the RPC interface name.String
toString()
int
version()
Returns the version of this RPC interface.String
versionedName()
Returns the versioned name of this RPC interface.
-
-
-
Constructor Detail
-
RpcInterfaceInfo
public RpcInterfaceInfo(Class<T> javaType, int version, int minClientVersion, List<RpcMethodInfo> methods)
Constructs a new instance.- Parameters:
javaType
- SeejavaType()
.version
- Seeversion()
minClientVersion
- SeeminClientVersion()
.methods
- Seemethods()
.
-
-
Method Detail
-
name
public String name()
Returns the RPC interface name.This method is merely a shortcut for
javaType()
.getName()
.- Returns:
- RPC interface name.
-
versionedName
public String versionedName()
Returns the versioned name of this RPC interface.- Returns:
- Versioned name.
-
javaType
public Class<T> javaType()
Returns the Java type of this RPC interface.- Returns:
- Java type of this RPC interface.
-
version
public int version()
Returns the version of this RPC interface.- Returns:
- Version of this RPC interface.
- See Also:
Rpc.version()
-
minClientVersion
public int minClientVersion()
Returns the minimum client version that is supported by this RPC interface.- Returns:
- Minimum client version that is supported by this RPC interface.
- See Also:
Rpc.minClientVersion()
-
methods
public List<RpcMethodInfo> methods()
Returns the meta-information about this RPC interface's methods.- Returns:
- meta-information about this RPC interface's methods.
-
-