Interface ManagedObjectService<F extends java.lang.Enum<F>>
-
public interface ManagedObjectService<F extends java.lang.Enum<F>>
Allows theManagedObjectSource
to service by invokingProcessState
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
startServicing(ManagedObjectServiceContext<F> serviceContext)
Starts the servicing.void
stopServicing()
Stops servicing.
-
-
-
Method Detail
-
startServicing
void startServicing(ManagedObjectServiceContext<F> serviceContext) throws java.lang.Exception
Starts the servicing.
Servicing should only use the invoking
Thread
of this method for service start up. After set up for servicing, should use theThreadFactory
instances provided by theManagedObjectExecuteContext
.Note that blocking in this method will slow
OfficeFloor
start 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:
OfficeFloor
failed to start up, so clean up any servicing (note that start may have not been called)OfficeFloor
is being closed
-
-