1 | // Copyright (c) 2006 Dustin Sallings <dustin@spy.net> |
2 | |
3 | package net.spy.memcached.protocol.ascii; |
4 | |
5 | import java.util.Collection; |
6 | import java.util.Collections; |
7 | import java.util.HashSet; |
8 | |
9 | import net.spy.memcached.ops.GetOperation; |
10 | |
11 | /** |
12 | * Operation for retrieving data. |
13 | */ |
14 | class GetOperationImpl extends BaseGetOpImpl implements GetOperation { |
15 | |
16 | private static final String CMD="get"; |
17 | |
18 | public GetOperationImpl(String key, GetOperation.Callback c) { |
19 | super(CMD, c, Collections.singleton(key)); |
20 | } |
21 | |
22 | public GetOperationImpl(Collection<String> k, GetOperation.Callback c) { |
23 | super(CMD, c, new HashSet<String>(k)); |
24 | } |
25 | |
26 | } |