Project
Loading...
Searching...
No Matches
ExpirationHandler.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
12#ifndef O2_FRAMEWORK_EXPIRATIONHANDLER_H_
13#define O2_FRAMEWORK_EXPIRATIONHANDLER_H_
14
15#include "Framework/Lifetime.h"
18#include "Framework/InputSpan.h"
20#include <cstdint>
21#include <functional>
22
23namespace o2::framework
24{
25
26struct PartRef;
27struct ServiceRegistry;
28struct TimesliceIndex;
29struct TimesliceSlot;
30struct InputRecord;
31
35 using Checker = std::function<bool(ServiceRegistryRef, uint64_t timestamp, InputSpan const& record)>;
37 using Handler = std::function<void(ServiceRegistryRef, PartRef& expiredInput, data_matcher::VariableContext& variables)>;
38
39 std::string name = "unset";
45};
46
47} // namespace o2::framework
48
49#endif // O2_FRAMEWORK_EXPIRATIONHANDLER_H_
GLuint const GLchar * name
Definition glcorearb.h:781
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
Lifetime
Possible Lifetime of objects being exchanged by the DPL.
Definition Lifetime.h:18
std::function< bool(ServiceRegistryRef, uint64_t timestamp, InputSpan const &record)> Checker
Callback type to check if the record must be expired.
std::function< void(ServiceRegistryRef, PartRef &expiredInput, data_matcher::VariableContext &variables)> Handler
Callback type to actually materialise a given record.
std::function< TimesliceSlot(ServiceRegistryRef, ChannelIndex)> Creator
Reference to an inflight part.
Definition PartRef.h:24