Package net.spy.memcached.ops

Examples of net.spy.memcached.ops.DeleteOperation


   * @param when when the deletion should take effect
   */
  public Future<Boolean> delete(String key, int when) {
    final CountDownLatch latch=new CountDownLatch(1);
    final OperationFuture<Boolean> rv=new OperationFuture<Boolean>(latch);
    DeleteOperation op=opFact.delete(key, when,
        new OperationCallback() {
          public void receivedStatus(OperationStatus s) {
            rv.set(s.isSuccess());
          }
          public void complete() {
View Full Code Here


   */
  public Future<Boolean> delete(String key) {
    final CountDownLatch latch=new CountDownLatch(1);
    final OperationFuture<Boolean> rv=new OperationFuture<Boolean>(latch,
      operationTimeout);
    DeleteOperation op=opFact.delete(key,
        new OperationCallback() {
          public void receivedStatus(OperationStatus s) {
            rv.set(s.isSuccess());
          }
          public void complete() {
View Full Code Here

   */
  public OperationFuture<Boolean> delete(String key) {
    final CountDownLatch latch = new CountDownLatch(1);
    final OperationFuture<Boolean> rv = new OperationFuture<Boolean>(key,
        latch, operationTimeout);
    DeleteOperation op = opFact.delete(key, new OperationCallback() {
      public void receivedStatus(OperationStatus s) {
        rv.set(s.isSuccess(), s);
      }

      public void complete() {
View Full Code Here

   */
  public Future<Boolean> delete(String key, int hold) {
    final CountDownLatch latch=new CountDownLatch(1);
    final OperationFuture<Boolean> rv=new OperationFuture<Boolean>(latch,
      operationTimeout);
    DeleteOperation op=opFact.delete(key, hold,
        new OperationCallback() {
          public void receivedStatus(OperationStatus s) {
            rv.set(s.isSuccess());
          }
          public void complete() {
View Full Code Here

   */
  public Future<Boolean> delete(String key) {
    final CountDownLatch latch=new CountDownLatch(1);
    final OperationFuture<Boolean> rv=new OperationFuture<Boolean>(latch,
      operationTimeout);
    DeleteOperation op=opFact.delete(key,
        new OperationCallback() {
          public void receivedStatus(OperationStatus s) {
            rv.set(s.isSuccess());
          }
          public void complete() {
View Full Code Here

TOP

Related Classes of net.spy.memcached.ops.DeleteOperation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.