Package jadex.publishservice.impl
Class RequestManager.ConversationInfo
java.lang.Object
jadex.publishservice.impl.RequestManager.ConversationInfo
- Enclosing class:
RequestManager
Struct for storing info about a request and the results.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the callid.jadex.future.IFuture
<?> Get the future.long
Get the timestamp of the last check (i.e.boolean
Test if it is an intermediate future.boolean
Check if terminatedvoid
Set the callid.void
setFuture
(jadex.future.IFuture<?> future) void
setSessionId
(String sessionid) void
setTerminated
(boolean term) Set it to terminated.toString()
long
Renew the timestamp.
-
Field Details
-
terminated
protected boolean terminated -
lastcheck
protected long lastcheck -
future
protected jadex.future.IFuture<?> future -
sessionid
-
callid
-
-
Constructor Details
-
ConversationInfo
Create a request info.
-
-
Method Details
-
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 jadex.future.IFuture<?> getFuture()Get the future.- Returns:
- the future
-
setFuture
public void setFuture(jadex.future.IFuture<?> future) - Parameters:
future
- the future to set
-
getSessionId
- Returns:
- the session
-
setSessionId
- Parameters:
session
- the session to set
-
getCallId
Get the callid.- Returns:
- the callid.
-
setCallId
Set the callid.- Parameters:
callid
- The callid.
-
isIntermediateFuture
public boolean isIntermediateFuture()Test if it is an intermediate future.- Returns:
- True, if is intermediate future.
-
toString
-