Package jadex.extension.rs.publish
Class AbstractRestPublishService.ConversationInfo
- java.lang.Object
-
- jadex.extension.rs.publish.AbstractRestPublishService.ConversationInfo
-
- Enclosing class:
- AbstractRestPublishService
public static class AbstractRestPublishService.ConversationInfo extends java.lang.Object
Struct for storing info about a request and the results.
-
-
Constructor Summary
Constructors Constructor Description ConversationInfo(java.lang.String callid, java.lang.String sessionid)
Create a request info.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCallId()
Get the callid.IFuture<?>
getFuture()
Get the future.java.lang.String
getSessionId()
long
getTimestamp()
Get the timestamp of the last check (i.e.boolean
isIntermediateFuture()
Test if it is an intermediate future.boolean
isTerminated()
Check if terminatedvoid
setCallId(java.lang.String callid)
Set the callid.void
setFuture(IFuture<?> future)
void
setSessionId(java.lang.String sessionid)
void
setTerminated(boolean term)
Set it to terminated.long
updateTimestamp()
Renew the timestamp.
-
-
-
Field Detail
-
terminated
protected boolean terminated
-
lastcheck
protected long lastcheck
-
future
protected IFuture<?> future
-
sessionid
protected java.lang.String sessionid
-
callid
protected java.lang.String callid
-
-
Method Detail
-
setTerminated
public void setTerminated(boolean term)
Set it to terminated.
-
isTerminated
public boolean isTerminated()
Check if terminated- Returns:
- True if terminated.
-
updateTimestamp
public long updateTimestamp()
Renew the timestamp.
-
getTimestamp
public long getTimestamp()
Get the timestamp of the last check (i.e. last request from browser).
-
getFuture
public IFuture<?> getFuture()
Get the future.- Returns:
- the future
-
setFuture
public void setFuture(IFuture<?> future)
- Parameters:
future
- the future to set
-
getSessionId
public java.lang.String getSessionId()
- Returns:
- the session
-
setSessionId
public void setSessionId(java.lang.String sessionid)
- Parameters:
session
- the session to set
-
getCallId
public java.lang.String getCallId()
Get the callid.- Returns:
- the callid.
-
setCallId
public void setCallId(java.lang.String callid)
Set the callid.- Parameters:
callid
- The callid.
-
isIntermediateFuture
public boolean isIntermediateFuture()
Test if it is an intermediate future.- Returns:
- True, if is intermediate future.
-
-