public static class AbstractRestPublishService.RequestInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Throwable |
exception |
protected long |
lastcheck |
protected AbstractRestPublishService.MappingInfo |
mappingInfo |
protected java.util.Queue<java.lang.Object> |
results |
protected boolean |
terminated |
| Constructor and Description |
|---|
RequestInfo(AbstractRestPublishService.MappingInfo mappingInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(java.lang.Object result)
Add a result.
|
boolean |
checkForResult()
Check, if there is a result that is not yet consumed.
|
java.lang.Throwable |
getException()
Get the exception (if any).
|
AbstractRestPublishService.MappingInfo |
getMappingInfo()
Get the mappingInfo.
|
java.lang.Object |
getNextResult()
Get the next result (FIFO order).
|
long |
getTimestamp()
Get the timestamp of the last check (i.e.
|
boolean |
isTerminated() |
void |
setException(java.lang.Throwable exception)
Set the exception.
|
void |
setTerminated() |
protected java.util.Queue<java.lang.Object> results
protected AbstractRestPublishService.MappingInfo mappingInfo
protected boolean terminated
protected java.lang.Throwable exception
protected long lastcheck
public RequestInfo(AbstractRestPublishService.MappingInfo mappingInfo)
public void setTerminated()
public boolean isTerminated()
public boolean checkForResult()
public void addResult(java.lang.Object result)
result - The result to addpublic AbstractRestPublishService.MappingInfo getMappingInfo()
public java.lang.Throwable getException()
public void setException(java.lang.Throwable exception)
public java.lang.Object getNextResult()
java.lang.NullPointerException - if there were never any resultsjava.util.NoSuchElementException - if the last result was already consumed.public long getTimestamp()