public interface LinkResourceStore
| Modifier and Type | Method and Description |
|---|---|
void |
allocateResources(LinkResourceAllocations allocations)
Allocates resources.
|
Iterable<LinkResourceAllocations> |
getAllocations()
Returns all allocated resources.
|
LinkResourceAllocations |
getAllocations(IntentId intentId)
Returns resources allocated for an Intent.
|
Iterable<LinkResourceAllocations> |
getAllocations(Link link)
Returns resources allocated for a link.
|
Set<ResourceAllocation> |
getFreeResources(Link link)
Returns free resources for given link.
|
LinkResourceEvent |
releaseResources(LinkResourceAllocations allocations)
Releases resources.
|
Set<ResourceAllocation> getFreeResources(Link link)
link - a target linkvoid allocateResources(LinkResourceAllocations allocations)
allocations - resources to be allocatedLinkResourceEvent releaseResources(LinkResourceAllocations allocations)
allocations - resources to be releasedLinkResourceAllocations getAllocations(IntentId intentId)
intentId - the target Intent's IDIterable<LinkResourceAllocations> getAllocations(Link link)
link - the target linkIterable<LinkResourceAllocations> getAllocations()
Copyright © 2015. All rights reserved.