Package io.zeebe.servicecontainer.impl
Class ServiceController
- java.lang.Object
-
- io.zeebe.util.sched.Actor
-
- io.zeebe.servicecontainer.impl.ServiceController
-
public class ServiceController extends Actor
-
-
Constructor Summary
Constructors Constructor Description ServiceController(ServiceBuilder<?> builder, ServiceContainerImpl serviceContainer, CompletableActorFuture startFuture)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddReferencedValue(ServiceGroupReference ref, ServiceName name, Object value)voidfireEvent(ServiceEvent.ServiceEventType evtType)voidfireEvent(ServiceEvent.ServiceEventType evtType, Object payload)Set<ServiceName<?>>getDependencies()ServiceName<?>getGroupName()Map<ServiceName<?>,ServiceGroupReference<?>>getInjectedReferences()StringgetName()ServicegetService()ServiceName<?>getServiceName()protected voidonActorClosed()protected voidonActorStarted()ActorFuture<Void>remove()voidremoveReferencedValue(ServiceGroupReference ref, ServiceName name, Object value)StringtoString()-
Methods inherited from class io.zeebe.util.sched.Actor
onActorCloseRequested, onActorClosing, onActorStarting, wrap
-
-
-
-
Constructor Detail
-
ServiceController
public ServiceController(ServiceBuilder<?> builder, ServiceContainerImpl serviceContainer, CompletableActorFuture startFuture)
-
-
Method Detail
-
onActorStarted
protected void onActorStarted()
- Overrides:
onActorStartedin classActor
-
onActorClosed
protected void onActorClosed()
- Overrides:
onActorClosedin classActor
-
fireEvent
public void fireEvent(ServiceEvent.ServiceEventType evtType)
-
fireEvent
public void fireEvent(ServiceEvent.ServiceEventType evtType, Object payload)
-
getDependencies
public Set<ServiceName<?>> getDependencies()
-
remove
public ActorFuture<Void> remove()
-
getGroupName
public ServiceName<?> getGroupName()
-
getServiceName
public ServiceName<?> getServiceName()
-
getInjectedReferences
public Map<ServiceName<?>,ServiceGroupReference<?>> getInjectedReferences()
-
getService
public Service getService()
-
addReferencedValue
public void addReferencedValue(ServiceGroupReference ref, ServiceName name, Object value)
-
removeReferencedValue
public void removeReferencedValue(ServiceGroupReference ref, ServiceName name, Object value)
-
-