Skip to content

Commit

Permalink
Added a helper method to return the EVCacheClient
Browse files Browse the repository at this point in the history
  • Loading branch information
smadappa authored and Sumanth Pasupuleti [email protected] committed Aug 7, 2020
1 parent d706c9c commit 86f5567
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions evcache-core/src/main/java/net/spy/memcached/EVCacheNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.List;

import com.netflix.evcache.EVCache;
import com.netflix.evcache.pool.EVCacheClient;
import com.netflix.evcache.pool.ServerGroup;
import com.netflix.spectator.api.Tag;

Expand Down Expand Up @@ -58,5 +59,7 @@ public interface EVCacheNode extends MemcachedNode {
int getReconnectCount();

boolean isActive();

EVCacheClient getEVCacheClient();

}
Original file line number Diff line number Diff line change
Expand Up @@ -230,4 +230,8 @@ public String getConnectTime() {
}


@Override
public EVCacheClient getEVCacheClient() {
return client;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -325,4 +325,9 @@ public String getSocketChannelRemoteAddress() {
public String getConnectTime() {
return ISODateTimeFormat.dateTime().print(stTime);
}

@Override
public EVCacheClient getEVCacheClient() {
return client;
}
}

0 comments on commit 86f5567

Please sign in to comment.