public static final class ENetConfigure.SelectorInfo extends Object implements Comparable<ENetConfigure.SelectorInfo>
thread type,
ThreadType.SPINPARK
and ThreadType.SPINYIELD selectors, and
ThreadType.SPINPARK selectors.
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ENetConfigure.SelectorInfo selector)
Compares
this object with the specified
selector. |
boolean |
equals(Object o)
Returns
true if this object equals
o and false otherwise. |
int |
hashCode()
Returns a hash code for this object.
|
boolean |
isDefault()
Returns
true if this user-defined selector
thread is the default selector. |
String |
name()
Returns the unique selector thread name.
|
long |
parkTime()
Returns the spin+park nanosecond park time.
|
int |
priority()
Returns the selector thread priority.
|
long |
spinLimit()
Returns a spin+park
ESelector spin limit. |
String |
toString()
Returns a string representation of this selector
info.
|
ThreadType |
type()
Returns the
ESelector type. |
public int compareTo(ENetConfigure.SelectorInfo selector)
this object with the specified
selector. Returns negative, zero, or positive integer
value based on whether this object is <,
equal to, or > selector. Comparison is
based on on the selector name.compareTo in interface Comparable<ENetConfigure.SelectorInfo>selector - object used in the comparison.public boolean equals(Object o)
true if this object equals
o and false otherwise. Comparison is
based on the name, thread type, "is default" flag,
thread priority, spin limit and park time.public int hashCode()
public String toString()
public String name()
public ThreadType type()
ESelector type.public boolean isDefault()
true if this user-defined selector
thread is the default selector.true if the default selector thread.public int priority()
public long spinLimit()
ESelector spin limit.public long parkTime()
Copyright © 2020. All rights reserved.