1 23 24 package com.sun.enterprise.web.connector.grizzly; 25 26 32 public class TaskEvent<E> { 33 34 public final static int START = 0; 35 public final static int ERROR = 1; 36 public final static int COMPLETED = 2; 37 public final static int CONTINUE = 3; 38 public final static int START_ASYNCHRONOUS = 4; 39 40 private int status; 41 42 43 public int getStatus(){ 44 return status; 45 } 46 47 48 public void setStatus(int status){ 49 this.status = status; 50 } 51 52 53 56 protected E ctx; 57 58 59 62 public TaskEvent(E ctx){ 63 this.ctx = ctx; 64 } 65 66 67 70 public TaskEvent(){ 71 } 72 73 74 77 public void attach(E ctx){ 78 this.ctx = ctx; 79 } 80 81 82 85 public E attachement(){ 86 return ctx; 87 } 88 89 90 91 } 92 93 94 | Popular Tags |