};
/** expiring cache for future rpcResponses */
- private final Cache<RpcResponseKey, ResponseExpectedRpcListener<?>> responseCache;
+ private Cache<RpcResponseKey, ResponseExpectedRpcListener<?>> responseCache;
private final ChannelOutboundQueue output;
private final Channel channel;
}).start();
}
-
@Override
public void setConnectionReadyListener(
final ConnectionReadyListener connectionReadyListener) {
public InetSocketAddress getRemoteAddress() {
return (InetSocketAddress) channel.remoteAddress();
}
-}
+
+ /**
+ * Used only for testing purposes
+ * @param cache
+ */
+ public void setResponseCache(Cache<RpcResponseKey, ResponseExpectedRpcListener<?>> cache) {
+ this.responseCache = cache;
+ }
+}
\ No newline at end of file