public class ThreadBridge
extends java.lang.Object
ThreadBridge implements a method of calling methods on
a different thread.| Constructor and Description |
|---|
ThreadBridge()
Constructs a ThreadBridge
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
call(java.lang.Object object,
java.lang.reflect.Method method,
java.lang.Object[] args)
send a method call across the bridge
|
void |
close()
close the bridge
|
boolean |
isOpen()
Check if bridge is open
|
void |
open()
open the bridge and wait for stuff to be sent across
|
public void close()
public boolean isOpen()
public void open()
public java.lang.Object call(java.lang.Object object,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.reflect.InvocationTargetException,
java.lang.InterruptedException
object - object to invoke method on (can be null for static methods)method - method to invokeargs - arguments to the methodjava.lang.reflect.InvocationTargetException - which wraps any exception that may have been thrown
by the invoked methodjava.lang.InterruptedException - if action was interrupted (can't ever happen in java 1.1)