主权项 |
1. A method comprising:
receiving, from a client application, a request for an enqueue lock for a first piece of data; creating, at an enqueue server separate from an application server instance, a light-weight enqueue session, the creating including generating a light-weight enqueue session identification for the light-weight enqueue session; storing, in the light-weight enqueue session, the enqueue lock for the first piece of data; sending the light-weight enqueue session identification to the client application; receiving, from the client application, a request for an enqueue lock for a second piece of data, the request for the enqueue lock for the second piece of data including the light-weight enqueue session identification; storing, in the light-weight enqueue session, the enqueue lock for the second piece of data; detecting that a session between the client application and the application server instance has been terminated; and deleting all enqueue locks in the light-weight enqueue session and deleting the light-weight enqueue session in response to the detection that the session between the client application and the application server instance has been terminated. |