Interface ManagedObjectService<F extends java.lang.Enum<F>>
-
public interface ManagedObjectService<F extends java.lang.Enum<F>>Allows theManagedObjectSourceto service by invokingProcessState.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidstartServicing(ManagedObjectServiceContext<F> serviceContext)Starts the servicing.voidstopServicing()Stops servicing.
-
-
-
Method Detail
-
startServicing
void startServicing(ManagedObjectServiceContext<F> serviceContext) throws java.lang.Exception
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:
java.lang.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
-
-