|
IBM Rational Functional Tester Version 8.1.1000 IBM Rational Functional Tester Proxy SDK Reference Project Version 2.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rational.test.ft.domain.ChannelRunnable
public abstract class ChannelRunnable
An abstract implementation of a runnable interface that
can be scheduled for execution on a specific channel. The implementor defines a class that extends this one, overriding send()
.
IChannel
,
ThreadChannel
,
ChannelSwitchException
Field Summary | |
---|---|
protected boolean |
complete
|
protected java.lang.Object |
returnValue
|
protected java.lang.Throwable |
throwable
|
Constructor Summary | |
---|---|
ChannelRunnable()
|
|
ChannelRunnable(long timeout)
|
Method Summary | |
---|---|
java.lang.Object |
getReturnValue()
Gets the return value from send() . |
boolean |
isComplete()
Did the channel operation complete? |
boolean |
isRevoked()
|
boolean |
isStarted()
has the runnable actually started to execute on the destination channel. |
void |
run()
Called by the underlying IChannel implementation to run the ChannelRunnable object. |
abstract java.lang.Object |
send()
Implementors override this method with code that must be run on this channel. |
void |
setComplete(boolean done)
Set the completion status of the channel operation. |
void |
setCrossChannel()
|
ChannelRunnable |
setTimeout(int milliseconds)
Set the time when this message will expire. |
void |
throwException()
Throws any pending throwable that occurs while executing on the channel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Object returnValue
protected boolean complete
protected java.lang.Throwable throwable
Constructor Detail |
---|
public ChannelRunnable()
public ChannelRunnable(long timeout)
Method Detail |
---|
public abstract java.lang.Object send()
getReturnValue()
.public void setCrossChannel()
public ChannelRunnable setTimeout(int milliseconds)
public boolean isRevoked()
public void run()
IChannel
implementation to run the ChannelRunnable
object. Invokes send()
and saves
the return value.
run
in interface java.lang.Runnable
public void throwException()
send()
implementation has code that must run on the original thread, this method catches the ChannelSwitchException
and invokes run()
.
public java.lang.Object getReturnValue()
send()
. This return value is marshalled back to the originating thread that invoked the channel
request.
public boolean isComplete()
public void setComplete(boolean done)
done
- - true if send completed, false otherwise.public boolean isStarted()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |