Package wt.feedback
Class ProgressCountFeedback
java.lang.Object
wt.feedback.ProgressCountFeedback
- All Implemented Interfaces:
Externalizable,Serializable,MethodFeedback
Feedback object to carry progress count values to client.
This class can be used by server-side methods to push progress count values
to a client while an operation is being performed.
This class implements Externalizable as a performance improvement over Serializable.
Supported API: true
Extendable: true
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPublic no-arg constructor required by Externalizable.ProgressCountFeedback(int progressCount) Construct a newStatusFeedbackobject to carry the given status string. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Perform feedback operation in client.voidreadExternal(ObjectInput input_stream) Called during marshaling on the client side.voidwriteExternal(ObjectOutput output_stream) Called during marshaling on the server side.
-
Constructor Details
-
ProgressCountFeedback
public ProgressCountFeedback()Public no-arg constructor required by Externalizable. This constructor is only used on the client-side when receiving the object.
Supported API: true -
ProgressCountFeedback
public ProgressCountFeedback(int progressCount) Construct a newStatusFeedbackobject to carry the given status string.
Supported API: true- Parameters:
status- the status message
-
-
Method Details
-
execute
public void execute()Perform feedback operation in client. This method is automatically invoked when the feedback is received in the client's RMI reply marshalling stream. If the calling thread is an instance ofWTThread, the thread's progress counter property is set to this objects counter value.
Supported API: true- Specified by:
executein interfaceMethodFeedback
-
readExternal
Called during marshaling on the client side.
Supported API: true- Specified by:
readExternalin interfaceExternalizable- Throws:
IOException
-
writeExternal
Called during marshaling on the server side.
Supported API: true- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-