1 22 23 package org.jboss.aspects.asynchronous.common; 24 25 import org.jboss.aspects.asynchronous.AsynchronousTask; 26 import org.jboss.aspects.asynchronous.ThreadManagerResponse; 27 28 32 33 public class AsynchronousEmptyTask implements AsynchronousTask 34 { 35 36 protected String id; 37 38 protected ThreadManagerResponse threadManagerResponse; 39 40 public AsynchronousEmptyTask(String id, 41 42 int code, 43 44 Object e, 45 46 String reason, 47 48 long startingTime) 49 { 50 51 this.id = id; 52 53 threadManagerResponse = 54 55 new ThreadManagerResponseImpl(id, 56 57 code, 58 59 reason, 60 61 e, 62 63 startingTime, 64 65 startingTime); 66 67 } 68 69 public ThreadManagerResponse getResponse() 70 { 71 72 return threadManagerResponse; 73 74 } 75 76 public boolean isDone() 77 { 78 79 return true; 80 81 } 82 83 public String getId() 84 { 85 86 return id; 87 88 } 89 90 } 91 92 | Popular Tags |