×

Retrieving events from a queue

  • US 7,624,396 B1
  • Filed: 02/26/2004
  • Issued: 11/24/2009
  • Est. Priority Date: 02/26/2004
  • Status: Active Grant
First Claim
Patent Images

1. In a computer system, a method for retrieving events from an event port, the method comprising:

  • receiving from a computer software application, a request to retrieve a specified number of events from an event port to which completed events are posted by one or more event sources;

    determining whether the specified number of events is available at the event port;

    if the specified number of events is available at the event port, retrieving the specified number of events from the event port and returning the retrieved events to the requesting computer software application;

    if fewer events than the specified number of events are available at the event port, placing the request in a request queue with requests to be processed at a later time and ordering the request queue based on priorities of the requests in the request queue, wherein the specified number of events to be retrieved from the event port is used to determine a relative priority of the request in the request queue with respect to other requests in the request queue; and

    changing the priorities of the requests in the request queue based on the number of events available at the event port, wherein the changing is further based on a specified number of events to be retrieved as part of at least one request received in response to at least one indication about the number of events available at the event port.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×