16 #ifndef BLOOMBERG_QUANTUM_SEQUENCER_CONFIGURATION_H 17 #define BLOOMBERG_QUANTUM_SEQUENCER_CONFIGURATION_H 26 struct SequenceKeyData;
37 template <
class SequenceKey,
38 class Hash = std::hash<SequenceKey>,
39 class KeyEqual = std::equal_to<SequenceKey>,
40 class Allocator = std::allocator<std::pair<const SequenceKey, SequenceKeyData>>>
102 int _controllerQueueId{0};
103 size_t _bucketCount{0};
106 Allocator _allocator;
112 #include <quantum/util/impl/quantum_sequencer_configuration_impl.h> 114 #endif //BLOOMBERG_QUANTUM_SEQUENCER_CONFIGURATION_H Definition: quantum_buffer_impl.h:22
const KeyEqual & getKeyEqual() const
Gets the comparison function to be used for all SequenceKey comparisons for the context hash map.
Definition: quantum_sequencer_configuration_impl.h:88
void setKeyEqual(const KeyEqual &keyEqual)
Sets the comparison function to be used for all SequenceKey comparisons for the context hash map.
Definition: quantum_sequencer_configuration_impl.h:81
Definition: quantum_allocator.h:54
Implementation of a configuration class for Sequencer.
Definition: quantum_sequencer_configuration.h:41
const Allocator & getAllocator() const
Gets the allocator for all SequenceKey comparisons for the context hash map.
Definition: quantum_sequencer_configuration_impl.h:102
const ExceptionCallback & getExceptionCallback() const
Gets the exception callback for Scheduler.
Definition: quantum_sequencer_configuration_impl.h:119
void setAllocator(const Allocator &allocator)
Sets the allocator for all SequenceKey comparisons for the context hash map.
Definition: quantum_sequencer_configuration_impl.h:95
void setHash(const Hash &hash)
Sets the hash function to be used for the context hash map.
Definition: quantum_sequencer_configuration_impl.h:67
std::function< void(std::exception_ptr exception, void *opaque)> ExceptionCallback
Callback for unhandled exceptions in tasks posted to Sequencer.
Definition: quantum_sequencer_configuration.h:48
const Hash & getHash() const
Gets the hash function to be used for the context hash map.
Definition: quantum_sequencer_configuration_impl.h:74
int getControlQueueId() const
Gets the id of the control queue.
Definition: quantum_sequencer_configuration_impl.h:46
size_t getBucketCount() const
gets the minimal number of buckets to be used for the context hash map
Definition: quantum_sequencer_configuration_impl.h:60
void setControlQueueId(int controlQueueId)
Sets the id of the control queue.
Definition: quantum_sequencer_configuration_impl.h:39
void setBucketCount(size_t bucketCount)
Sets the minimal number of buckets to be used for the context hash map.
Definition: quantum_sequencer_configuration_impl.h:53
void setExceptionCallback(const ExceptionCallback &exceptionCallback)
Sets the exception callback for Scheduler.
Definition: quantum_sequencer_configuration_impl.h:109