public class NettyFactory extends Object implements ServerFactory, ClientFactory
| Constructor and Description |
|---|
NettyFactory(Parameters parameters) |
| Modifier and Type | Method and Description |
|---|---|
SupportedRpcType |
getRpcType() |
NettyClientRpc |
newRaftClientRpc(ClientId clientId,
RaftProperties properties) |
NettyRpcService |
newRaftServerRpc(RaftServer server) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcast, newLogAppendercastpublic NettyFactory(Parameters parameters)
public SupportedRpcType getRpcType()
getRpcType in interface RpcType.Getpublic NettyRpcService newRaftServerRpc(RaftServer server)
newRaftServerRpc in interface ServerFactorypublic NettyClientRpc newRaftClientRpc(ClientId clientId, RaftProperties properties)
newRaftClientRpc in interface ClientFactoryCopyright © 2017–2023 The Apache Software Foundation. All rights reserved.