-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6184e4f
commit e7dab2f
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...e-router/joylive-router-sofarpc/src/main/java/com/alipay/sofa/rpc/client/LiveCluster.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.alipay.sofa.rpc.client; | ||
|
||
import com.alipay.sofa.rpc.filter.FilterChain; | ||
|
||
public class LiveCluster { | ||
|
||
private final AbstractCluster cluster; | ||
|
||
public LiveCluster(AbstractCluster cluster) { | ||
this.cluster = cluster; | ||
} | ||
|
||
public FilterChain getFilterChain() { | ||
return cluster.getFilterChain(); | ||
} | ||
|
||
public String getStickyId() { | ||
// 粘滞连接,当前连接可用 | ||
if (cluster.consumerConfig.isSticky()) { | ||
// if (lastProviderInfo != null) { | ||
// ProviderInfo providerInfo = lastProviderInfo; | ||
// ClientTransport lastTransport = connectionHolder.getAvailableClientTransport(providerInfo); | ||
// if (lastTransport != null && lastTransport.isAvailable()) { | ||
// checkAlias(providerInfo, message); | ||
// return providerInfo; | ||
// } | ||
// } | ||
} | ||
return null; | ||
} | ||
} |