All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
as_async_proto.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2017 Aerospike, Inc.
3  *
4  * Portions may be licensed to Aerospike, Inc. under one or more contributor
5  * license agreements.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
8  * use this file except in compliance with the License. You may obtain a copy of
9  * the License at http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14  * License for the specific language governing permissions and limitations under
15  * the License.
16  */
17 #pragma once
18 
19 #include <stdbool.h>
20 #include <stdint.h>
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 struct as_cluster_s;
27 
28 /******************************************************************************
29  * FUNCTIONS
30  *****************************************************************************/
31 
32 uint32_t
34 
35 uint32_t
36 as_async_get_pending(struct as_cluster_s* cluster);
37 
38 void
39 as_async_get_connections(struct as_cluster_s* cluster, uint32_t* async_conn, uint32_t* async_conn_pool);
40 
41 void
42 as_async_update_max_idle(struct as_cluster_s* cluster, uint32_t max_idle);
43 
44 void
45 as_async_update_max_conns(struct as_cluster_s* cluster, bool pipe, uint32_t max_conns);
46 
47 #ifdef __cplusplus
48 } // end extern "C"
49 #endif
void as_async_get_connections(struct as_cluster_s *cluster, uint32_t *async_conn, uint32_t *async_conn_pool)
void as_async_update_max_idle(struct as_cluster_s *cluster, uint32_t max_idle)
void as_async_update_max_conns(struct as_cluster_s *cluster, bool pipe, uint32_t max_conns)
uint32_t as_async_get_cluster_count()
uint32_t as_async_get_pending(struct as_cluster_s *cluster)