com.gilt.opm

RichOpmObjectSetter

case class RichOpmObjectSetter[T <: OpmObject, V](roo: RichOpmObjectInitializer[T]) extends Product with Serializable

This class is used to make sure that you are passing the right type to "to". Before this, you could "set(_.foo).to(bar), and get a runtime failure if bar was not the right type.

A note to people who expand functionality here: dealing with new values happens both here (in RichOpmObject) and in OpmFactory.diffModels (for evolving an existing model with an overlaid model). Make sure you make updates to both.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RichOpmObjectSetter
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichOpmObjectSetter(roo: RichOpmObjectInitializer[T])

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def ::=(v: V): T

  5. def :=(v: V): T

  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  17. def pruneTo(v: V): T

  18. val roo: RichOpmObjectInitializer[T]

  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  20. def to(v: V): T

  21. def toNotPending(): T

    In some manner, the pending flag can be considered a 'lock' on initiating processing for a given field in the blackboard model.

    In some manner, the pending flag can be considered a 'lock' on initiating processing for a given field in the blackboard model. The use case is this: an object is being built up through a sequence of asynchronous calls to external processes; setting a field to 'pending' indicates that that process has been kicked off and doesn't need to be kicked off again. If that process responds with an incomplete state (e.g. a server timeout), it is useful to be turn off the pending flag to allow for the processing to be initiated again (thereby 'unlocking' the field). The ability to turn off the pending 'lock' is necessary in a case such as this, where there is no value to set on the field and the blackboard is still building the model (i.e. a 'not set' state is entirely valid).

  22. def toPending(expireAfter: Long, unit: TimeUnit): T

    Flag a field as pending, supported in the blackboard model.

    Flag a field as pending, supported in the blackboard model. This will do nothing if the field is already populated with a value other than None. None will be overwritten because it is implicit acknowledgement from the developer that the value can be in a "not set" state (i.e. None). Pending should overwrite this because it will potentially be setting it to a Some.

    expireAfter

    A Long representing the amount of time from now() that the pending flag should expire; use the 'unit' parameter to indicate the units of time that it represents. If the field has not been set within this time period, the pending flag will be ignored.

    unit

    A TimeUnit that indicates what units the expireAfter parameter is in.

  23. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped