程序包 | 说明 |
---|---|
org.apache.mina.common |
Common types required for users to use MINA.
|
org.apache.mina.common.support |
Internal classes used by org.apache.mina.common package.
|
限定符和类型 | 字段和说明 |
---|---|
static TrafficMask |
TrafficMask.ALL
This mask resumes both reads and writes if any of them were suspended.
|
static TrafficMask |
TrafficMask.NONE
This mask suspends both reads and writes.
|
static TrafficMask |
TrafficMask.READ
This mask suspends writes, and resumes reads if reads were suspended.
|
static TrafficMask |
TrafficMask.WRITE
This mask suspends reads, and resumes writes if writes were suspended.
|
限定符和类型 | 方法和说明 |
---|---|
TrafficMask |
TrafficMask.and(TrafficMask mask)
Peforms an AND operation on this mask with the specified
mask and returns the result.
|
static TrafficMask |
TrafficMask.getInstance(int interestOps)
Returns an appropriate
TrafficMask instance from the
specified interestOps. |
TrafficMask |
IoSession.getTrafficMask()
Returns the current
TrafficMask of this session. |
TrafficMask |
TrafficMask.not()
Returns a negated mask of this one.
|
TrafficMask |
TrafficMask.or(TrafficMask mask)
Peforms an OR operation on this mask with the specified
mask and returns the result.
|
TrafficMask |
TrafficMask.xor(TrafficMask mask)
Peforms an XOR operation on this mask with the specified
mask and returns the result.
|
限定符和类型 | 方法和说明 |
---|---|
TrafficMask |
TrafficMask.and(TrafficMask mask)
Peforms an AND operation on this mask with the specified
mask and returns the result.
|
TrafficMask |
TrafficMask.or(TrafficMask mask)
Peforms an OR operation on this mask with the specified
mask and returns the result.
|
void |
IoSession.setTrafficMask(TrafficMask trafficMask)
Sets the
TrafficMask of this session which will result
the parent IoService to start to control the traffic
of this session immediately. |
TrafficMask |
TrafficMask.xor(TrafficMask mask)
Peforms an XOR operation on this mask with the specified
mask and returns the result.
|
限定符和类型 | 方法和说明 |
---|---|
TrafficMask |
BaseIoSession.getTrafficMask() |
限定符和类型 | 方法和说明 |
---|---|
void |
BaseIoSession.setTrafficMask(TrafficMask trafficMask) |