Package spin.demo.complex
Class LatencyService
java.lang.Object
spin.demo.complex.LatencyService
- All Implemented Interfaces:
DirectoryService
Service that adds a latency to another service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChildren
(Directory directory) Get the children of a directory.getRoot()
Get the root directory.
-
Constructor Details
-
LatencyService
Constructor.
-
-
Method Details
-
getRoot
Get the root directory.- Specified by:
getRoot
in interfaceDirectoryService
- Returns:
- the root directory
-
getChildren
Get the children of a directory.- Specified by:
getChildren
in interfaceDirectoryService
- Parameters:
directory
- directory to get children for- Returns:
- children
- Throws:
DirectoryServiceException
-