@@ -0,0 +1,652 @@
+package org.ddpush.im.v1.client.appuser.example;%0D%0A%0D%0Aimport java.util.concurrent.TimeUnit;%0D%0A%0D%0Aimport org.ddpush.im.v1.client.appserver.Pusher;%0D%0A%0D%0Apublic class QueryTask extends send0x20Task%7B%0D%0A%0D%0A%09public QueryTask(String serverIp, int port, byte%5B%5D uuid, byte%5B%5D msg) %7B%0D%0A%09%09super(serverIp, port, uuid, msg);%0D%0A%09%7D%0D%0A%09@Override%0D%0A%09public void run()%7B%0D%0A%09%09Pusher pusher = null;%0D%0A%09%09try%7B%0D%0A%09%09%09boolean result;%0D%0A%09%09%09pusher = new Pusher(serverIp,port, 1000*5);%0D%0A%09%09%09result = pusher.pushQueryMessage(uuid,msg);%0D%0A%09%09%09 TimeUnit.MILLISECONDS.sleep(1);%0D%0A%09%09%7Dcatch(Exception e)%7B%0D%0A%09%09%7Dfinally%7B%0D%0A%09%09%09if(pusher != null)%7B%0D%0A%09%09%09%09try%7Bpusher.close();%7Dcatch(Exception e)%7B%7D;%0D%0A%09%09%09%7D%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%7D%0D%0A

format code