Class Service
java.lang.Object
services.moleculer.service.MoleculerComponent
services.moleculer.service.Service
- All Implemented Interfaces:
MoleculerLifecycle
- Direct Known Subclasses:
NodeService
Superclass of Moleculer Services. Sample:
public static class Math extends Service {
public Action add = ctx -> {
return ctx.params.get("a", 0) +
ctx.params.get("b", 0);
};
}
-
Field Summary
Fields inherited from class MoleculerComponent
broker, logger, name -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Service
public Service() -
Service
-