Interface ManagedObjectService<F extends Enum<F>>
public interface ManagedObjectService<F extends Enum<F>>
Allows the
ManagedObjectSource to service by invoking
ProcessState.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionvoidstartServicing(ManagedObjectServiceContext<F> serviceContext) Starts the servicing.voidStops servicing.
-
Method Details
-
startServicing
Starts the servicing.
Servicing should only use the invoking
Threadof this method for service start up. After set up for servicing, should use theThreadFactoryinstances provided by theManagedObjectExecuteContext.Note that blocking in this method will slow
OfficeFloorstart up times.- Parameters:
serviceContext-ManagedObjectServiceContext.- Throws:
Exception- If fails to start servicing.
-
stopServicing
void stopServicing()Stops servicing.
This will be invoked in two circumstances:
OfficeFloorfailed to start up, so clean up any servicing (note that start may have not been called)OfficeFlooris being closed
-