public class BasicLinkConfig extends AllowedEntityConfig<LinkKey>
| Modifier and Type | Field and Description |
|---|---|
static String |
BANDWIDTH |
static String |
IS_DURABLE |
static String |
LATENCY |
static String |
TYPE |
| Constructor and Description |
|---|
BasicLinkConfig() |
| Modifier and Type | Method and Description |
|---|---|
long |
bandwidth()
Returns link bandwidth in terms of Mbps.
|
BasicLinkConfig |
bandwidth(Long bandwidth)
Sets the link bandwidth.
|
Boolean |
isDurable()
Returns if link is durable in the network model or not.
|
BasicLinkConfig |
isDurable(Boolean isDurable)
Sets durability for this link.
|
java.time.Duration |
latency()
Returns link latency in terms of nanos.
|
BasicLinkConfig |
latency(java.time.Duration latency)
Sets the link latency.
|
Link.Type |
type()
Returns the link type.
|
BasicLinkConfig |
type(Link.Type type)
Sets the link type.
|
isAllowed, isAllowedapply, get, get, get, get, get, get, getList, init, key, node, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, subjectpublic static final String TYPE
public static final String LATENCY
public static final String BANDWIDTH
public static final String IS_DURABLE
public Link.Type type()
public BasicLinkConfig type(Link.Type type)
type - link type overridepublic java.time.Duration latency()
public BasicLinkConfig latency(java.time.Duration latency)
latency - new latency; null to clearpublic long bandwidth()
public BasicLinkConfig bandwidth(Long bandwidth)
bandwidth - new bandwidth; null to clearpublic Boolean isDurable()
public BasicLinkConfig isDurable(Boolean isDurable)
isDurable - true for durable, false otherwiseCopyright © 2015. All rights reserved.