Package org.nanonative.nano.core.model
Class Service
java.lang.Object
org.nanonative.nano.core.model.Service
- Direct Known Subclasses:
HttpClient,HttpServer,LogService,MetricService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Contextprotected final longprotected final AtomicBoolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(berlin.yuna.typemap.model.TypeMapI<?> config) abstract voidconfigure(berlin.yuna.typemap.model.TypeMapI<?> changes, berlin.yuna.typemap.model.TypeMapI<?> merged) context()longbooleanisReady()name()nanoThread(Context context) abstract voidabstract ObjectreceiveEvent(Event event) abstract voidstart()abstract voidstop()static NanoThread[]
-
Field Details
-
createdAtMs
protected final long createdAtMs -
isReady
-
context
-
-
Constructor Details
-
Service
protected Service()
-
-
Method Details
-
start
public abstract void start() -
stop
public abstract void stop() -
onFailure
-
onEvent
-
configure
public void configure(berlin.yuna.typemap.model.TypeMapI<?> config) -
configure
public abstract void configure(berlin.yuna.typemap.model.TypeMapI<?> changes, berlin.yuna.typemap.model.TypeMapI<?> merged) -
name
-
context
-
isReady
public boolean isReady() -
isReadyState
-
context
-
createdAtMs
public long createdAtMs() -
receiveEvent
-
nanoThread
-
threadsOf
-