File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release.
13
13
connection and ctx is not canceled;
14
14
also added logs for error case of ` ConnectionPool.tryConnect() ` calls in
15
15
` ConnectionPool.controller() ` and ` ConnectionPool.reconnect() `
16
+ - Methods that are implemented but not included in the pooler interface (#395 ).
17
+
16
18
### Changed
17
19
18
20
### Fixed
Original file line number Diff line number Diff line change 1
1
package pool
2
2
3
3
import (
4
+ "context"
4
5
"time"
5
6
6
7
"github.com/tarantool/go-tarantool/v2"
7
8
)
8
9
10
+ // TopologyEditor is the interface that must be implemented by a connection pool.
11
+ // It describes edit topology methods.
12
+ type TopologyEditor interface {
13
+ Add (ctx context.Context , instance Instance ) error
14
+ Remove (name string ) error
15
+ }
16
+
9
17
// Pooler is the interface that must be implemented by a connection pool.
10
18
type Pooler interface {
19
+ TopologyEditor
20
+
11
21
ConnectedNow (mode Mode ) (bool , error )
12
22
Close () []error
23
+ // CloseGraceful closes connections in the ConnectionPool gracefully. It waits
24
+ // for all requests to complete.
25
+ CloseGraceful () []error
13
26
ConfiguredTimeout (mode Mode ) (time.Duration , error )
14
27
NewPrepared (expr string , mode Mode ) (* tarantool.Prepared , error )
15
28
NewStream (mode Mode ) (* tarantool.Stream , error )
You can’t perform that action at this time.
0 commit comments