public class InvocationRequestQueue extends Object
| Constructor and Description |
|---|
InvocationRequestQueue(String name,
BaseComponent target,
InvocationRequest onClose)
Create an invocation request queue for the specified target.
|
InvocationRequestQueue(String name,
Page page,
Object target,
InvocationRequest onClose)
Create an invocation request queue for the specified page and target.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the invocation queue.
|
String |
getName()
Returns the unique name for this queue.
|
boolean |
isAlive()
Returns true if this queue is alive.
|
void |
sendRequest(InvocationRequest request)
Queue a request on the owning page's event queue..
|
void |
sendRequest(String methodName,
Object... args)
Queue a request.
|
public InvocationRequestQueue(String name, BaseComponent target, InvocationRequest onClose)
name - Unique name for this queue.target - Target of invocation requests sent to the queue.onClose - Invocation request to send to the target upon queue closure (may be null).public InvocationRequestQueue(String name, Page page, Object target, InvocationRequest onClose)
name - Unique name for this queue.page - Page instance that owns the queue.target - Target upon which invocations will operate.onClose - Invocation request to send to the target upon queue closure (may be null).public String getName()
public void close()
public void sendRequest(String methodName, Object... args)
methodName - Name of method to invoke on the target.args - Arguments to pass to the invoked method.public void sendRequest(InvocationRequest request)
request - The request.public boolean isAlive()
Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.