Class ServiceListenerFuture<S,V>
java.lang.Object
org.camunda.bpm.container.impl.jboss.util.ServiceListenerFuture<S,V>
- All Implemented Interfaces:
Future<V>
,org.jboss.msc.service.LifecycleListener
public abstract class ServiceListenerFuture<S,V>
extends Object
implements org.jboss.msc.service.LifecycleListener, Future<V>
A Future
implementation backed by a LifecycleListener
- Author:
- Daniel Meyer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
cancel
(boolean mayInterruptIfRunning) get()
void
handleEvent
(org.jboss.msc.service.ServiceController<?> controller, org.jboss.msc.service.LifecycleEvent event) boolean
boolean
isDone()
protected abstract void
-
Field Details
-
serviceInstance
-
value
-
-
Constructor Details
-
ServiceListenerFuture
-
-
Method Details
-
handleEvent
public void handleEvent(org.jboss.msc.service.ServiceController<?> controller, org.jboss.msc.service.LifecycleEvent event) - Specified by:
handleEvent
in interfaceorg.jboss.msc.service.LifecycleListener
-
serviceAvailable
protected abstract void serviceAvailable() -
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceFuture<S>
-
isDone
public boolean isDone() -
get
- Specified by:
get
in interfaceFuture<S>
- Throws:
InterruptedException
ExecutionException
-
get
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
get
in interfaceFuture<S>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-