-
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. abstract <T extends Feature> Tunwrap()Returns the original feature. abstract DataStoreHandlergetDataStore()Property to enable interaction with the data store. -
-
Method Detail
-
withWriteContext
@AnyThread() 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.
-
sendEvent
abstract Unit sendEvent(Object event)
Send event to a given feature. It will be sent in a synchronous way.
- Parameters:
event- Event to send.
-
getDataStore
abstract DataStoreHandler getDataStore()
Property to enable interaction with the data store.
-
-
-
-