mirror of
https://gitee.com/BDWare/common
synced 2025-01-25 01:04:16 +00:00
add raft
This commit is contained in:
parent
34cedb8a13
commit
f74c4f040f
@ -66,6 +66,7 @@ public class ServiceServer extends Thread {
|
||||
new ChannelInitializer<SocketChannel>() {
|
||||
@Override
|
||||
protected void initChannel(SocketChannel arg0) {
|
||||
LOGGER.info("Connected:" + arg0.remoteAddress() + " " + arg0.localAddress());
|
||||
arg0.pipeline()
|
||||
.addLast(new LengthFieldBasedFrameCodec())
|
||||
.addLast(new AsyncInboundHandler(ServiceServer.this));
|
||||
|
@ -11,7 +11,8 @@ public enum ContractExecType implements Serializable {
|
||||
RequestAllResponseAll,
|
||||
Sharding,//分片执行模式
|
||||
SelfAdaptiveSharding,// self-adaptive sharding
|
||||
PBFT; //PBFT
|
||||
PBFT, //PBFT
|
||||
RAFT;
|
||||
|
||||
|
||||
public static ContractExecType getContractTypeByInt(int i) {
|
||||
|
Loading…
Reference in New Issue
Block a user