Package io.netty.channel
Interface IoRegistration
-
public interface IoRegistration
A registration for IO.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
attachment()
Implementation specific attachment, which might benull
.boolean
cancel()
Cancel the registration.boolean
isValid()
Returnstrue
if the registration is still valid.long
submit(IoOps ops)
Submit theIoOps
to the registration.
-
-
-
Method Detail
-
attachment
<T> T attachment()
Implementation specific attachment, which might benull
.- Returns:
- attachment.
-
submit
long submit(IoOps ops)
Submit theIoOps
to the registration.- Parameters:
ops
- ops.- Returns:
- an identifier for the operation, which might be unique or not (depending on the implementation).
-
isValid
boolean isValid()
- Returns:
- valid.
-
cancel
boolean cancel()
Cancel the registration.- Returns:
true
if cancellation was successful,false
otherwise.
-
-