发明名称 Coordinating application state and communication medium state
摘要 The present invention extends to methods, systems, and computer program products for coordinating application sate and communication mediums state. Embodiments of present invention provide a mechanism for a communication medium to provide a view of message content for a message (a peek) to an application along with the communication medium preventing further access to the message (a lock) until the application signals back how to handle the message. Thus, the communication medium indicates that the message is locked for the duration of processing at the application. Indicating that the message is locked significantly reduces the chance of the message being provided to another application (or another consumer of the same application) during the time the application is processing the view of message content.
申请公布号 US9021503(B2) 申请公布日期 2015.04.28
申请号 US200812019041 申请日期 2008.01.24
申请人 Microsoft Technology Licensing, LLC 发明人 Allen Nicholas A.;Batres Stefan;Elien Jean-Emile;Taylor John A.
分类号 G06F9/46;G06F7/00;G06F9/52;G06F9/54 主分类号 G06F9/46
代理机构 代理人 Drakos Kate;Chinagudabha Rahu;Minhas Micky
主权项 1. In a computer architecture including a communication medium and an application with a plurality of consumers that consume messages from the communication medium, a method for coordinating state between the communication medium and the application, the method comprising: an act of a consumer sending a message request to the communication medium; an act of the consumer receiving a view of the contents of a message from the communication medium, the receiving being a result of a receive function which is separated into an access action and a lock action, the communication medium having locked the message for exclusive access by the consumer in response to the message request and the communication medium having provided a view of the contents of the message to the consumer such that a competing consumer sees a message immediately following the locked message as a next available message; an act of the consumer attempting to update application state for the application based on the content view; an act of determining the results of the attempted application state update; and an act of signaling the communication medium how to update communication medium state based on the determined results to coordinate the communication medium state with the application state, the signal indicating the communication medium state is to unlock the message when the consumer cannot accept the message and the signal indicating the communication medium state is to delete the message when the consumer successfully accepts the message; wherein the act of the consumer receiving a view of the contents of a message from the communication medium comprises an act of receiving a view of a message body that is contained in a message envelope along with a message header, wherein the contents of a message comprise an object, wherein the object is extended with property associated with the message, the property being an abstraction of a portion of temporary state the communication medium is holding and associating with the message, and wherein the consumer interacts with the property to complete message receipt.
地址 Redmond WA US