Command errorCommand = null;
if (memcachedClient.getProtocol() == Protocol.Text) {
errorCommand = new MockDecodeTimeoutTextGetOneCommand("name",
"name".getBytes(), CommandType.GET_ONE, latch, 1000);
} else {
errorCommand = new MockDecodeTimeoutBinaryGetOneCommand("name",
"name".getBytes(), CommandType.GET_ONE, latch, OpCode.GET,
false, 1000);
}
memcachedClient.getConnector().send(errorCommand);
// wait 100 milliseconds,the operation will be timeout