Interface UseCase<I,O>

Type Parameters:
I - Input type - the input to the use case
O - Output type - the result of the use case
All Known Implementing Classes:
SysmonHandlers.GetAllMetricsHandler, SysmonHandlers.GetCpuHandler, SysmonHandlers.GetDiskHandler, SysmonHandlers.GetMemoryHandler, UseCaseHandler
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface UseCase<I,O>
Core abstraction of business logic in Hexagonal Architecture. Each use case represents a specific operation or workflow in your domain.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(I input)
    Apply the use case logic to the input and produce an output.
  • Method Details

    • apply

      O apply(I input)
      Apply the use case logic to the input and produce an output.
      Parameters:
      input - The input to process
      Returns:
      The result of the use case