|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.sca.core.conversation.ExtendedConversationImpl
public class ExtendedConversationImpl
Constructor Summary | |
---|---|
ExtendedConversationImpl(ConversationManagerImpl manager,
java.lang.Object conversationID,
ConversationState state)
Constructor |
Method Summary | |
---|---|
boolean |
conversationalAttributesInitialized()
|
void |
end()
End this conversation. |
java.lang.Object |
getConversationID()
Returns the identifier for this conversation. |
ConversationState |
getState()
Get the state of a conversation |
void |
initializeConversationAttributes(RuntimeComponent targetComponent)
|
boolean |
isExpired()
will check whether this conversation has expired and update state if it has |
void |
run()
called when expiring |
void |
scheduleNextExpiryTime(long currentTime)
schedule next expiry time |
void |
setConversationID(java.lang.Object conversationID)
|
void |
setState(ConversationState state)
|
void |
updateLastReferencedTime()
updates the last time this conversation was referenced |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtendedConversationImpl(ConversationManagerImpl manager, java.lang.Object conversationID, ConversationState state)
manager
- the conversation managerconversationID
- the conversation id associated with this conversationstate
- the initial state of this conversationaMaxAge
- the maximum age of the conversationaMaxIdleTime
- the maximum idle timeMethod Detail |
---|
public boolean isExpired()
isExpired
in interface ExtendedConversation
public void scheduleNextExpiryTime(long currentTime)
public void updateLastReferencedTime()
updateLastReferencedTime
in interface ExtendedConversation
public ConversationState getState()
ExtendedConversation
getState
in interface ExtendedConversation
public void end()
org.osoa.sca.Conversation
end
in interface org.osoa.sca.Conversation
public java.lang.Object getConversationID()
org.osoa.sca.Conversation
getConversationID
in interface org.osoa.sca.Conversation
public void setState(ConversationState state)
setState
in interface ExtendedConversation
state
- the state to setpublic void setConversationID(java.lang.Object conversationID)
setConversationID
in interface ExtendedConversation
conversationID
- the conversationID to setpublic void initializeConversationAttributes(RuntimeComponent targetComponent)
initializeConversationAttributes
in interface ExtendedConversation
maxAge
- the maximum age of this conversationpublic boolean conversationalAttributesInitialized()
conversationalAttributesInitialized
in interface ExtendedConversation
public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |