public abstract class ServiceListenerFuture<S,V> extends org.jboss.msc.service.AbstractServiceListener<S> implements org.jboss.msc.service.ServiceListener<S>, Future<V>
A Future
implementation backed by a ServiceListener
Modifier and Type | Field and Description |
---|---|
protected S |
serviceInstance |
protected V |
value |
Constructor and Description |
---|
ServiceListenerFuture(S serviceInstance) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
V |
get() |
V |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
protected abstract void |
serviceAvailable() |
void |
transition(org.jboss.msc.service.ServiceController<? extends S> controller,
org.jboss.msc.service.ServiceController.Transition transition) |
dependencyFailed, dependencyFailureCleared, immediateDependencyAvailable, immediateDependencyUnavailable, listenerAdded, serviceRemoveRequestCleared, serviceRemoveRequested, transitiveDependencyAvailable, transitiveDependencyUnavailable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dependencyFailed, dependencyFailureCleared, immediateDependencyAvailable, immediateDependencyUnavailable, listenerAdded, serviceRemoveRequestCleared, serviceRemoveRequested, transitiveDependencyAvailable, transitiveDependencyUnavailable
public ServiceListenerFuture(S serviceInstance)
public void transition(org.jboss.msc.service.ServiceController<? extends S> controller, org.jboss.msc.service.ServiceController.Transition transition)
protected abstract void serviceAvailable()
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled
in interface Future<V>
public V get() throws InterruptedException, ExecutionException
get
in interface Future<V>
InterruptedException
ExecutionException
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<V>
InterruptedException
ExecutionException
TimeoutException
Copyright © 2017. All rights reserved.