Blame view

service-common/src/main/java/com/java110/common/thread/TranslateOwnerToMachineFactory.java 1.35 KB
88e030b7   王彪总   init project
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  package com.java110.common.thread;
  
  public class TranslateOwnerToMachineFactory {
  
      public static void startOwnerToMachine(){
          //启动业主信息同步 线程 变更业主的场景
          TranslateOwnerToMachine ownerMachine = new TranslateOwnerToMachine(true);
          Thread ownerToMachineThread = new Thread(ownerMachine,"TranslateOwnerToMachineThread");
          ownerToMachineThread.start();
  
          // 变更 门禁的场景
          TranslateOwnerToMachineChangeMachine machine = new TranslateOwnerToMachineChangeMachine(true);
          Thread ownerToMachineChangeThread = new Thread(machine,"TranslateOwnerToMachineChangeMachineThread");
          ownerToMachineChangeThread.start();
  
          //启动申请钥匙信息同步 线程 变更业主的场景
          TranslateApplicationKeyToMachine applicationKeyMachine = new TranslateApplicationKeyToMachine(true);
          Thread translateApplicationKeyToMachineThread = new Thread(applicationKeyMachine,"TranslateApplicationKeyToMachineThread");
          translateApplicationKeyToMachineThread.start();
  
          //定时修改申请钥匙的密码
          UpdateApplicationKeyPwd updateApplicationKeyPwd = new UpdateApplicationKeyPwd(true);
          Thread updateApplicationKeyPwdThread = new Thread(updateApplicationKeyPwd,"UpdateApplicationKeyPwdThread");
          updateApplicationKeyPwdThread.start();
      }
  }