public class LocalDownloadedResource extends Object
Constructor and Description |
---|
LocalDownloadedResource(Future<Void> pending) |
Modifier and Type | Method and Description |
---|---|
boolean |
isDone()
Is this has been cleaned up completely.
|
boolean |
release(int port,
LocalAssignment la)
Release a port from the reference count, and update isDone if all is done.
|
Future<Void> |
reserve(int port,
LocalAssignment la)
Reserve the resources
|
String |
toString() |
public Future<Void> reserve(int port, LocalAssignment la)
Reserve the resources
port
- the port this is forla
- the assignment this is forpublic boolean release(int port, LocalAssignment la)
Release a port from the reference count, and update isDone if all is done.
port
- the port to releasela
- the assignment to releasepublic boolean isDone()
Is this has been cleaned up completely.
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.