Package io.hekate.rpc
Class RpcServerInfo
- java.lang.Object
-
- io.hekate.rpc.RpcServerInfo
-
public class RpcServerInfo extends Object
Provides information about the RPC server configuration.- See Also:
RpcService.servers()
-
-
Constructor Summary
Constructors Constructor Description RpcServerInfo(Object rpc, Collection<RpcInterfaceInfo<?>> interfaces, Collection<String> tags)
Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<RpcInterfaceInfo<?>>
interfaces()
Returns the list of RPC interfaces that are supported by this RPC server.Object
rpc()
Returns the RPC server object.Set<String>
tags()
Returns the set of tags that are configured for this RPC server.String
toString()
-
-
-
Constructor Detail
-
RpcServerInfo
public RpcServerInfo(Object rpc, Collection<RpcInterfaceInfo<?>> interfaces, Collection<String> tags)
Constructs a new instance.- Parameters:
rpc
- Seerpc()
interfaces
- Seeinterfaces()
tags
- Seetags()
-
-
Method Detail
-
rpc
public Object rpc()
Returns the RPC server object.- Returns:
- RPC server object (see
RpcServerConfig.setHandler(Object)
).
-
interfaces
public List<RpcInterfaceInfo<?>> interfaces()
Returns the list of RPC interfaces that are supported by this RPC server.- Returns:
- List of RPC interfaces that are supported by this RPC server (see
Rpc
).
-
tags
public Set<String> tags()
Returns the set of tags that are configured for this RPC server.- Returns:
- set of tags that are configured for this RPC server (see
RpcServerConfig.setTags(Set)
).
-
-