Interface PollingFunction<T extends PermissionRequest>

Type Parameters:
T - The type of permission request that is used
All Known Implementing Classes:
EnerginetPollingFunction, GreenButtonPollingFunction, MijnAansluitingPollingFunction, RetransmissionPollingService, RetransmissionPollingService, RetransmissionPollingService, RetransmissionPollingService
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 PollingFunction<T extends PermissionRequest>
Used to poll validated historical data.
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Mono<RetransmissionResult>
    poll(T permissionRequest, RetransmissionRequest retransmissionRequest)
    Used to poll data for a permission request.
  • Method Details

    • poll

      reactor.core.publisher.Mono<RetransmissionResult> poll(T permissionRequest, RetransmissionRequest retransmissionRequest)
      Used to poll data for a permission request. The timeframe is specified by the retransmission request. Should only work for permission requests that are either accepted or fulfilled. The data need of the permission request has to be a ValidatedHistoricalDataDataNeed.
      Parameters:
      permissionRequest - The permission request for which data should be polled.
      retransmissionRequest - Specifies the timeframe of the data.
      Returns:
      If the polling was successful.