作者 crossoverJie

:bug: Fixing a bug.

@@ -41,7 +41,7 @@ public class CIMClientHandle extends SimpleChannelInboundHandler<CIMResponseProt @@ -41,7 +41,7 @@ public class CIMClientHandle extends SimpleChannelInboundHandler<CIMResponseProt
41 if (idleStateEvent.state() == IdleState.WRITER_IDLE){ 41 if (idleStateEvent.state() == IdleState.WRITER_IDLE){
42 CIMRequestProto.CIMReqProtocol heartBeat = SpringBeanFactory.getBean("heartBeat", 42 CIMRequestProto.CIMReqProtocol heartBeat = SpringBeanFactory.getBean("heartBeat",
43 CIMRequestProto.CIMReqProtocol.class); 43 CIMRequestProto.CIMReqProtocol.class);
44 - ctx.writeAndFlush(heartBeat).sync().addListeners(ChannelFutureListener.CLOSE_ON_FAILURE) ; 44 + ctx.writeAndFlush(heartBeat).addListeners(ChannelFutureListener.CLOSE_ON_FAILURE) ;
45 } 45 }
46 46
47 47
  1 +package com.crossoverjie.cim.common.data.construct;
  2 +
  3 +/**
  4 + * Function:
  5 + *
  6 + * @author crossoverJie
  7 + * Date: 2019/1/7 18:58
  8 + * @since JDK 1.8
  9 + */
  10 +public class TrieTree {
  11 +
  12 + private Node root ;
  13 +
  14 + public TrieTree() {
  15 + root = new Node(null);
  16 + }
  17 +
  18 +
  19 + public void insert(String data){
  20 + char[] chars = data.toCharArray();
  21 + for (char aChar : chars) {
  22 +
  23 + }
  24 + }
  25 +
  26 + private class Node{
  27 + private Node left ;
  28 + private Node right ;
  29 + private Character data ;
  30 +
  31 + public Node(Character data) {
  32 + this.data = data;
  33 + }
  34 +
  35 + public Node(Node left, Node right, Character data) {
  36 + this.left = left;
  37 + this.right = right;
  38 + this.data = data;
  39 + }
  40 + }
  41 +}