Package wt.feedback

Class WTContextUpdate

java.lang.Object
wt.feedback.WTContextUpdate
All Implemented Interfaces:
Externalizable, Serializable, MethodFeedback

public class WTContextUpdate extends Object implements MethodFeedback, Externalizable
Feedback object to carry updates to client's WTContext object. This class can be used by server-side methods to push updates to a client's WTContext as a side effect of performing an operation.

For example, if some client-side classes use the WTContext object to cache frequently used objects, server-side operations that change these objects can automatically push new values into the client's WTContext object. This is useful if the currently executing method does not normally carry such updated objects as part of its return value.

Supported API: true
Extendable: true

See Also:
  • Constructor Details

    • WTContextUpdate

      public WTContextUpdate()
      Public no-arg constructor required by Externalizable. This constructor is only used on the client-side when receiving the object.

      Supported API: true
    • WTContextUpdate

      public WTContextUpdate(Object key, Object value)
      Construct a new WTContextUpdate object.

      Supported API: true
      Parameters:
      key - the hashtable key
      value - the value
  • Method Details