Package cn.com.zjtelecom.smgp.bean

Examples of cn.com.zjtelecom.smgp.bean.Deliver


          System.out.println("--------------------------");         
          System.out.println("SrcNum  : " + para[1]);
          System.out.println("DestNum : " + para[2]);
          System.out.println("Content : " + para[3]);
          System.out.println("--------------------------");
          Deliver deliver = new Deliver();
          deliver.IsReport = 0;
          deliver.MsgFormat = 15;
          deliver.SrcTermID = para[1];
          deliver.DestTermID = para[2];
          deliver.MsgContent = para[3].getBytes();
View Full Code Here


   
    //��ʼ��client
    Client client = new Client(host, port, 2,account, passwd,spid, 0);
   
    do{
      Deliver deliver = client.OnDeliver();
      if (deliver.IsReport==1){
        System.out.println("-----------------");
        System.out.println("Got MsgReport");
        System.out.println("-----------------");
        System.out.println("MsgID       : "+deliver.MsgID);
View Full Code Here

    }

  }

  private synchronized void onDeliver(DeliverMessage deliverMessage) {
    Deliver dm = new Deliver(deliverMessage);
    this.clientEventInterface.onDeliver(dm);
  }
View Full Code Here

        // TODO Auto-generated catch block
        e.printStackTrace();
      }
    }
    // System.out.println("Size:"+this.deliverbuffer.size());
    Deliver dm = new Deliver((DeliverMessage) (this.deliverbuffer.get(0)));
    this.deliverbuffer.remove(0);
    // System.out.println("Return Deliver");
    return dm;
  }
View Full Code Here

  public synchronized Deliver getDeliver() {
    if (this.deliverbuffer.size() == 0) {
      return null;
    } else {
      Deliver dm = new Deliver((DeliverMessage) (this.deliverbuffer
          .get(0)));
      this.deliverbuffer.remove(0);
      // System.out.println("Return Deliver");
      return dm;
    }
View Full Code Here

TOP

Related Classes of cn.com.zjtelecom.smgp.bean.Deliver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.