MySQL 9.3.0
Source Code Documentation
connection_delay_api.h
Go to the documentation of this file.
1/* Copyright (c) 2024, 2025, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is designed to work with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef CONNECTION_DELAY_API_H
25#define CONNECTION_DELAY_API_H
26
27#include <include/my_inttypes.h>
28
29namespace connection_control {
30
31/* constants/variables defined in connection_delay.cc */
32
33extern const int64 MIN_THRESHOLD;
34extern const int64 DISABLE_THRESHOLD;
35extern const int64 MAX_THRESHOLD;
36
37extern const int64 MIN_DELAY;
38extern const int64 MAX_DELAY;
39
40/** Functions being used by connection_control.cc */
41
42class Connection_event_coordinator;
43
44void init_connection_delay_event(Connection_event_coordinator *coordinator);
46
47} // namespace connection_control
48#endif // !CONNECTION_DELAY_API_H
Some integer typedefs for easier portability.
int64_t int64
Definition: my_inttypes.h:68
Definition: connection_control.h:70
const int64 DISABLE_THRESHOLD
Definition: connection_delay.cc:40
const int64 MIN_DELAY
Definition: connection_delay.cc:43
const int64 MAX_DELAY
Definition: connection_delay.cc:44
const int64 MAX_THRESHOLD
Definition: connection_delay.cc:41
void deinit_connection_delay_event()
Deinitializes objects and frees associated memory.
Definition: connection_delay.cc:410
void init_connection_delay_event(Connection_event_coordinator *coordinator)
Initializes required objects for handling connection events.
Definition: connection_delay.cc:394
const int64 MIN_THRESHOLD
constants/variables declared in connection_delay_interfaces.h
Definition: connection_delay.cc:39