Interface CollectionContext.Builder.OptionalStep
- Enclosing class:
CollectionContext.Builder
public static interface CollectionContext.Builder.OptionalStep
Final builder step: optional settings.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the context.collectionInterval(Duration collectionInterval) Sets the interval of a periodic collection; unset means one-time or event-driven.collectionTime(Instant collectionTime) Sets when the collection occurred; defaults to now.isHeartbeat(boolean isHeartbeat) Sets whether this is a heartbeat collection; defaults tofalse.withProperty(Property<T> key, T value) Sets an additional property.
-
Method Details
-
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
Sets when the collection occurred; defaults to now.- Parameters:
collectionTime- the collection time.- Returns:
- this step.
-
isHeartbeat
Sets whether this is a heartbeat collection; defaults tofalse.- Parameters:
isHeartbeat-truefor a heartbeat.- Returns:
- this step.
-
withProperty
Sets an additional property.- Type Parameters:
T- the property value type.- Parameters:
key- the property.value- the value.- Returns:
- this step.
-
build
-