示例#1
0
 private void clear() {
   if (properties != null) {
     properties.clear();
     properties = null;
   }
   if (hash != null) {
     hash.clear();
     hash = null;
   }
   if (task != null) {
     task.cancel(true);
     task = null;
   }
   if (concerned != null) {
     concerned.clear();
     concerned = null;
   }
   url = null;
   priority = 0;
 }
示例#2
0
 public void start() {
   if (task == null) {
     task = new WebTask();
     task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, hash); // task.execute(hash);
   }
 }