org.apache.curator.utils
Class CloseableExecutorService.InternalScheduledFutureTask

java.lang.Object
  extended by org.apache.curator.utils.CloseableExecutorService.InternalScheduledFutureTask
All Implemented Interfaces:
Future<Void>
Enclosing class:
CloseableExecutorService

protected class CloseableExecutorService.InternalScheduledFutureTask
extends Object
implements Future<Void>


Constructor Summary
CloseableExecutorService.InternalScheduledFutureTask(ScheduledFuture<?> scheduledFuture)
           
 
Method Summary
 boolean cancel(boolean mayInterruptIfRunning)
           
 Void get()
           
 Void get(long timeout, TimeUnit unit)
           
 boolean isCancelled()
           
 boolean isDone()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloseableExecutorService.InternalScheduledFutureTask

public CloseableExecutorService.InternalScheduledFutureTask(ScheduledFuture<?> scheduledFuture)
Method Detail

cancel

public boolean cancel(boolean mayInterruptIfRunning)
Specified by:
cancel in interface Future<Void>

isCancelled

public boolean isCancelled()
Specified by:
isCancelled in interface Future<Void>

isDone

public boolean isDone()
Specified by:
isDone in interface Future<Void>

get

public Void get()
         throws InterruptedException,
                ExecutionException
Specified by:
get in interface Future<Void>
Throws:
InterruptedException
ExecutionException

get

public Void get(long timeout,
                TimeUnit unit)
         throws InterruptedException,
                ExecutionException,
                TimeoutException
Specified by:
get in interface Future<Void>
Throws:
InterruptedException
ExecutionException
TimeoutException


Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.