13
13
import com .xiaomi .infra .pegasus .replication .partition_configuration ;
14
14
import com .xiaomi .infra .pegasus .replication .query_cfg_request ;
15
15
import com .xiaomi .infra .pegasus .replication .query_cfg_response ;
16
+ import com .xiaomi .infra .pegasus .rpc .InternalTableOptions ;
16
17
import com .xiaomi .infra .pegasus .rpc .ReplicationException ;
17
18
import com .xiaomi .infra .pegasus .rpc .Table ;
18
- import com .xiaomi .infra .pegasus .rpc .TableOptions ;
19
19
import com .xiaomi .infra .pegasus .rpc .interceptor .InterceptorManger ;
20
20
import io .netty .channel .ChannelFuture ;
21
21
import io .netty .util .concurrent .EventExecutor ;
@@ -53,7 +53,7 @@ static final class TableConfiguration {
53
53
int backupRequestDelayMs ;
54
54
private InterceptorManger interceptorManger ;
55
55
56
- public TableHandler (ClusterManager mgr , String name , TableOptions options )
56
+ public TableHandler (ClusterManager mgr , String name , InternalTableOptions internalTableOptions )
57
57
throws ReplicationException {
58
58
int i = 0 ;
59
59
for (; i < name .length (); i ++) {
@@ -93,12 +93,12 @@ public TableHandler(ClusterManager mgr, String name, TableOptions options)
93
93
// superclass members
94
94
tableName_ = name ;
95
95
appID_ = resp .app_id ;
96
- hasher_ = options .keyHasher ();
96
+ hasher_ = internalTableOptions .keyHasher ();
97
97
98
98
// members of this
99
99
manager_ = mgr ;
100
100
executor_ = manager_ .getExecutor ();
101
- this .backupRequestDelayMs = options .backupRequestDelayMs ();
101
+ this .backupRequestDelayMs = internalTableOptions . tableOptions () .backupRequestDelayMs ();
102
102
if (backupRequestDelayMs > 0 ) {
103
103
logger .info ("the delay time of backup request is \" {}\" " , backupRequestDelayMs );
104
104
}
@@ -109,7 +109,7 @@ public TableHandler(ClusterManager mgr, String name, TableOptions options)
109
109
inQuerying_ = new AtomicBoolean (false );
110
110
lastQueryTime_ = 0 ;
111
111
112
- this .interceptorManger = new InterceptorManger (options );
112
+ this .interceptorManger = new InterceptorManger (internalTableOptions . tableOptions () );
113
113
}
114
114
115
115
public ReplicaConfiguration getReplicaConfig (int index ) {
0 commit comments