public class StreamPriority extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DEPENDENCY |
static boolean |
DEFAULT_EXCLUSIVE |
static short |
DEFAULT_WEIGHT |
Constructor and Description |
---|
StreamPriority() |
StreamPriority(JsonObject json) |
StreamPriority(StreamPriority other) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getDependency() |
short |
getWeight() |
int |
hashCode() |
boolean |
isExclusive() |
StreamPriority |
setDependency(int dependency)
Set the priority dependency value.
|
StreamPriority |
setExclusive(boolean exclusive)
Set the priority exclusive value.
|
StreamPriority |
setWeight(short weight)
Set the priority weight.
|
JsonObject |
toJson() |
String |
toString() |
public static final int DEFAULT_DEPENDENCY
public static final short DEFAULT_WEIGHT
public static final boolean DEFAULT_EXCLUSIVE
public StreamPriority()
public StreamPriority(JsonObject json)
public StreamPriority(StreamPriority other)
public short getWeight()
1
and 256
representing a priority weight
for the stream.public StreamPriority setWeight(short weight)
weight
- the new valuepublic int getDependency()
public StreamPriority setDependency(int dependency)
dependency
- the new valuepublic boolean isExclusive()
public StreamPriority setExclusive(boolean exclusive)
exclusive
- the new valuepublic JsonObject toJson()
Copyright © 2022 Eclipse. All rights reserved.