com.ibm.rational.test.lt.execution.socket.custom
Interface ISckReceiveAction


public interface ISckReceiveAction

ISckReceiveAction is the interface to the built-in Receive action instance.
It is intended for use from a Custom Receive Policy instance, implementing ISckCustomReceivePolicy.


Method Summary
 ISckConnectionHolder getConnectionHolder()
           
 void handleException(java.lang.Throwable t)
          Must be called from the Custom Receive Policy code when an exception is catched.
This terminates the current action and the Test goes on with the next action.
The action will be marked as failed in the Test Log viewer.
 void receiveSuccess()
          Must be called from the Custom Receive Policy code when it has received enough bytes, verifying some custom condition.
This terminates the current action and the Test goes on with the next action.
The action will be marked as successful in the Test Log viewer.
 

Method Detail

handleException

void handleException(java.lang.Throwable t)
Must be called from the Custom Receive Policy code when an exception is catched.
This terminates the current action and the Test goes on with the next action.
The action will be marked as failed in the Test Log viewer.

Parameters:
t - the Throwable (or Exception) to log into Test Log

receiveSuccess

void receiveSuccess()
Must be called from the Custom Receive Policy code when it has received enough bytes, verifying some custom condition.
This terminates the current action and the Test goes on with the next action.
The action will be marked as successful in the Test Log viewer.


getConnectionHolder

ISckConnectionHolder getConnectionHolder()
Returns:
the underlying connection holder instance