Package com.wavefront.agent.handlers
Interface ReportableEntityHandler<T,U>
-
- Type Parameters:
T
- the type of input objects handled.
- All Known Implementing Classes:
DeltaCounterAccumulationHandlerImpl
,EventHandlerImpl
,HistogramAccumulationHandlerImpl
,SpanHandlerImpl
,SpanLogsHandlerImpl
public interface ReportableEntityHandler<T,U>
Handler that processes incoming objects of a single entity type, validates them and hands them over to one of theSenderTask
threads.- Author:
- [email protected]
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
block(T t)
Handle the input object as blocked.void
block(T t, String message)
Handle the input object as blocked.void
reject(String t, String message)
Reject the input object as invalid, i.e.void
reject(T t, String message)
Reject the input object as invalid, i.e.void
report(T t)
Validate and accept the input object.void
shutdown()
Gracefully shutdown the pipeline.
-
-
-
Method Detail
-
report
void report(T t)
Validate and accept the input object.- Parameters:
t
- object to accept.
-
block
void block(T t)
Handle the input object as blocked. Blocked objects are otherwise valid objects that are rejected based on user-defined criteria.- Parameters:
t
- object to block.
-
block
void block(@Nullable T t, @Nullable String message)
Handle the input object as blocked. Blocked objects are otherwise valid objects that are rejected based on user-defined criteria.- Parameters:
t
- object to block.message
- message to write to the main log.
-
reject
void reject(@Nullable T t, @Nullable String message)
Reject the input object as invalid, i.e. rejected based on criteria defined by Wavefront.- Parameters:
t
- object to reject.message
- more user-friendly message to write to the main log.
-
reject
void reject(@Nonnull String t, @Nullable String message)
Reject the input object as invalid, i.e. rejected based on criteria defined by Wavefront.- Parameters:
t
- string to reject and to write to RawBlockedPointsLog.message
- more user-friendly message to write to the main log.
-
shutdown
void shutdown()
Gracefully shutdown the pipeline.
-
-