@Beta public final class TunnelConsumerId extends org.onlab.util.Identifier<Long> implements ResourceConsumer
| Constructor and Description |
|---|
TunnelConsumerId()
Initializes object for serializer.
|
TunnelConsumerId(long value)
Constructs the tunnel resource consumer id corresponding to a given long
value.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceConsumerId |
consumerId()
Returns ID of this consumer.
|
String |
toString() |
long |
value()
Returns the backing identifier value.
|
static TunnelConsumerId |
valueOf(long value)
Creates a tunnel resource consumer identifier from the specified long value.
|
public TunnelConsumerId()
public TunnelConsumerId(long value)
value - the underlying value in long representation of this tunnel
resource consumer idpublic static TunnelConsumerId valueOf(long value)
value - long value to be used as tunnel resource consumer idpublic long value()
public ResourceConsumerId consumerId()
ResourceConsumerconsumerId in interface ResourceConsumer