UI aware method invocation transferring to java event dispatch thread
First Claim
1. A method for transferring a method call from an invoke thread to an event dispatch thread, the invoke thread and the event dispatch thread executing independent of one another, the event dispatch thread having an associated queue, the method comprising the steps of:
- defining a new call on the invoke thread, the new call including;
i) identification of a method,ii) identification of an object,iii) one or more arguments, andiv) a coalescing indicator indicating a type of coalescing for the call;
sending, during execution of the invoke thread, the new call to the queue, one or more previous calls being stored in the queue;
coalescing the new call with one of the previous calls in the queue according to the type of coalescing indicated by the coalescing indicator;
retrieving the coalesced new call from the queue; and
executing the retrieved call as an event on the event dispatch thread including calling the identified method for the identified object and passing the one or more arguments.
2 Assignments
0 Petitions
Accused Products
Abstract
Methods and apparatuses are disclosed for transferring a method call from an invoke thread to an event dispatch thread. The invoke thread and the event dispatch thread may execute independent of one another and the event dispatch thread may have an associated queue. The method may include defining a new call on the invoke thread. The new call may include identification of a method, identification of an object, one or more arguments, and a coalescing indicator indicating a type of coalescing for the call. The method may further include sending, during execution of the invoke thread, the new call to the queue, one or more previous calls being stored in the queue, and coalescing the new call with one of the previous calls in the queue according to the type of coalescing indicated by the coalescing indicator.
16 Citations
20 Claims
-
1. A method for transferring a method call from an invoke thread to an event dispatch thread, the invoke thread and the event dispatch thread executing independent of one another, the event dispatch thread having an associated queue, the method comprising the steps of:
-
defining a new call on the invoke thread, the new call including; i) identification of a method, ii) identification of an object, iii) one or more arguments, and iv) a coalescing indicator indicating a type of coalescing for the call; sending, during execution of the invoke thread, the new call to the queue, one or more previous calls being stored in the queue; coalescing the new call with one of the previous calls in the queue according to the type of coalescing indicated by the coalescing indicator; retrieving the coalesced new call from the queue; and executing the retrieved call as an event on the event dispatch thread including calling the identified method for the identified object and passing the one or more arguments. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A data processing apparatus comprising:
-
a memory storing a method transfer program for transferring a method call from an invoke thread to an event dispatch thread, the invoke thread and the event dispatch thread executing independent of one another, the event dispatch having an associated queue, the method transfer program; defining a new call on the invoke thread, the new call including; i) identification of a method, ii) identification of an object, iii) one or more arguments, and iv) a coalescing indicator indicating a type of coalescing for the call; sending, during execution of the invoke thread, the new call to the queue, one or more previous calls being stored in the queue, and coalescing the new call with one of the previous calls in the queue according to the type of coalescing indicated by the coalescing indicator; retrieving the coalesced new call from the queue; executing the retrieved call as an event on the event dispatch thread, including calling the identified method for the identified object and passing the one or more arguments; and a processor capable of running the method transfer program. - View Dependent Claims (13, 14, 15, 16, 17, 18)
-
-
19. A tangible storage medium comprising a computer program product comprising instructions operable to cause a data processing apparatus to perform a method for transferring a method call from an invoke thread to an event dispatch thread, the invoke thread and the event dispatch thread executing independent of one another, the event dispatch having an associated queue, the method comprising the steps of:
-
defining a new call on the invoke thread, the new call including; i) identification of a method, ii) identification of an object, iii) one or more arguments, and iv) a coalescing indicator indicating a type of coalescing for the call; sending, during execution of the invoke thread, the new call to the queue, one or more previous calls being stored in the queue; coalescing the new call with one of the previous calls in the queue according to the type of coalescing indicated by the coalescing indicator; retrieving the coalesced new call from the queue; and executing the retrieved call as an event on the event dispatch thread, including calling the identified method for the identified object and passing the one or more arguments.
-
-
20. An apparatus for transferring a method call from an invoke thread to an event dispatch thread, the invoke thread and the event dispatch thread executing independent of one another, the event dispatch having an associated queue, the apparatus comprising:
-
a processor; means for defining a new call on the invoke thread, the new call including; i) identification of a method, ii) identification of an object, iii) one or more arguments, and iv) a coalescing indicator indicating a type of coalescing for the call; means for sending, during execution of the invoke thread, the new call to the queue, one or more previous calls being stored in the queue; means for coalescing the new call with one of the previous calls in the queue according to the type of coalescing indicated by the coalescing indicator; means for retrieving the coalesced new call from the queue; and means for executing the retrieved call as an event on the event dispatch thread, including calling the identified method for the identified object and passing the one or more arguments.
-
Specification