ThreadManagerResponseImplpublic class ThreadManagerResponseImpl extends AsynchronousResponseImpl implements org.jboss.aspects.asynchronous.ThreadManagerResponse, org.jboss.aspects.asynchronous.AsynchronousConstants
Fields Summary |
---|
private long | _startingTime | private long | _endingTime | private String | id | private static SimpleDateFormat | formatter |
Constructors Summary |
---|
public ThreadManagerResponseImpl(String id, int code, String reason, Object obj)
super(code, reason, obj);
this.id = id;
| public ThreadManagerResponseImpl(String id, int code, String reason, Object obj, long startTime)
super(code, reason, obj);
_startingTime = startTime;
this.id = id;
| public ThreadManagerResponseImpl(String id, int code, String reason, Object obj, long startTime, long endTime)
super(code, reason, obj);
_startingTime = startTime;
_endingTime = endTime;
this.id = id;
|
Methods Summary |
---|
public long | getEndingTime()
return _endingTime;
| public java.lang.String | getId()
return id;
| public long | getStartingTime()
return _startingTime;
| public java.lang.String | toString()
return new StringBuffer("Id:")
.append(getId())
.append(" Rc:")
.append(getResponseCode())
.append(getReason() != null ? " Re:" : "")
.append(getReason() != null ? getReason() : "")
.append(" St:")
.append(formatter.format(new Date(getStartingTime())))
.append(" Du:")
.append(getEndingTime() - getStartingTime())
.append(getResponseCode() != AsynchronousConstants.OK ? " Rs:" : "")
.append(getResult())
.toString();
|
|