@Beta public class ResourceAllocation extends Object
| Constructor and Description |
|---|
ResourceAllocation(ResourcePath resource,
ResourceConsumer consumer)
Creates an instance with the specified subject, resource and consumer.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceConsumer |
consumer()
Returns the consumer of this resource.
|
boolean |
equals(Object obj) |
int |
hashCode() |
ResourcePath |
resource()
Returns the specifier of the resource this allocation uses.
|
String |
toString() |
public ResourceAllocation(ResourcePath resource, ResourceConsumer consumer)
resource - resource of the subjectconsumer - consumer ot this resourcepublic ResourcePath resource()
public ResourceConsumer consumer()
Copyright © 2015. All rights reserved.