Interface TapeDrivePool
- All Known Subinterfaces:
TapeLibraryPool
- All Known Implementing Classes:
TapeLibraryPoolImpl
public interface TapeDrivePool
-
Method Summary
Modifier and TypeMethodDescriptioncheckoutDriveService
(Integer driveIndex) Retrieves and removes the head of this pool, waiting if necessary until an element becomes available.drives()
void
pushDriveService
(TapeDriveService tapeDriveService) Return or add TapeDriveService to the pool
-
Method Details
-
checkoutDriveService
Retrieves and removes the head of this pool, waiting if necessary until an element becomes available.- Returns:
- TapeDriveService
- Throws:
InterruptedException
-
pushDriveService
Return or add TapeDriveService to the pool- Parameters:
tapeDriveService
-- Throws:
InterruptedException
-
drives
Set<Map.Entry<Integer,TapeDriveService>> drives()
-