org.mockserver.maven
Class SettableFuture<V>

java.lang.Object
  extended by com.google.common.util.concurrent.AbstractFuture<V>
      extended by org.mockserver.maven.SettableFuture<V>
All Implemented Interfaces:
com.google.common.util.concurrent.ListenableFuture<V>, Future<V>

public class SettableFuture<V>
extends com.google.common.util.concurrent.AbstractFuture<V>


Method Summary
static
<V> SettableFuture<V>
create()
           
 boolean set(V value)
           
 boolean setException(Throwable throwable)
           
 
Methods inherited from class com.google.common.util.concurrent.AbstractFuture
addListener, cancel, get, get, interruptTask, isCancelled, isDone, wasInterrupted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static <V> SettableFuture<V> create()

set

public boolean set(V value)
Overrides:
set in class com.google.common.util.concurrent.AbstractFuture<V>

setException

public boolean setException(Throwable throwable)
Overrides:
setException in class com.google.common.util.concurrent.AbstractFuture<V>


Copyright © 2017. All rights reserved.