Interface CollectionContext.Builder.OptionalStep

Enclosing class:
CollectionContext.Builder

public static interface CollectionContext.Builder.OptionalStep
Final builder step: optional settings.
  • Method Details

    • collectionInterval

      CollectionContext.Builder.OptionalStep collectionInterval(Duration collectionInterval)
      Sets the interval of a periodic collection; unset means one-time or event-driven.
      Parameters:
      collectionInterval - the interval between collections.
      Returns:
      this step.
    • collectionTime

      CollectionContext.Builder.OptionalStep collectionTime(Instant collectionTime)
      Sets when the collection occurred; defaults to now.
      Parameters:
      collectionTime - the collection time.
      Returns:
      this step.
    • isHeartbeat

      CollectionContext.Builder.OptionalStep isHeartbeat(boolean isHeartbeat)
      Sets whether this is a heartbeat collection; defaults to false.
      Parameters:
      isHeartbeat - true for a heartbeat.
      Returns:
      this step.
    • withProperty

      <T> CollectionContext.Builder.OptionalStep withProperty(Property<T> key, T value)
      Sets an additional property.
      Type Parameters:
      T - the property value type.
      Parameters:
      key - the property.
      value - the value.
      Returns:
      this step.
    • build

      Builds the context.
      Returns:
      the new context.