| 1 | // Copyright (c) 2006 Dustin Sallings <dustin@spy.net> |
| 2 | |
| 3 | package net.spy.memcached.protocol.ascii; |
| 4 | |
| 5 | |
| 6 | import net.spy.memcached.ops.OperationCallback; |
| 7 | import net.spy.memcached.ops.StoreOperation; |
| 8 | import net.spy.memcached.ops.StoreType; |
| 9 | |
| 10 | /** |
| 11 | * Operation to store data in a memcached server. |
| 12 | */ |
| 13 | final class StoreOperationImpl extends BaseStoreOperationImpl |
| 14 | implements StoreOperation { |
| 15 | |
| 16 | private final StoreType storeType; |
| 17 | |
| 18 | public StoreOperationImpl(StoreType t, String k, int f, int e, |
| 19 | byte[] d, OperationCallback cb) { |
| 20 | super(t.name(), k, f, e, d, cb); |
| 21 | storeType = t; |
| 22 | } |
| 23 | |
| 24 | public StoreType getStoreType() { |
| 25 | return storeType; |
| 26 | } |
| 27 | |
| 28 | } |