-
public interface FeatureScopeRepresents a Datadog feature.
-
-
Method Summary
Modifier and Type Method Description abstract UnitwithWriteContext(Boolean forceNewBatch, Function2<DatadogContext, EventBatchWriter, Unit> callback)Utility to write an event, asynchronously. abstract UnitsendEvent(Object event)Send event to a given feature. -
-
Method Detail
-
withWriteContext
abstract Unit withWriteContext(Boolean forceNewBatch, Function2<DatadogContext, EventBatchWriter, Unit> callback)
Utility to write an event, asynchronously.
- Parameters:
forceNewBatch- iftrueforces the EventBatchWriter to write in a new file and not reuse the already existing pending data persistence file.callback- an operation called with an up-to-date DatadogContext and an EventBatchWriter.
-
-
-
-