Package io.netty.channel
Interface IoRegistration
-
public interface IoRegistrationA registration for IO.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Tattachment()Implementation specific attachment, which might benull.booleancancel()Cancel the registration.booleanisValid()Returnstrueif the registration is still valid.longsubmit(IoOps ops)Submit theIoOpsto the registration.
-
-
-
Method Detail
-
attachment
<T> T attachment()
Implementation specific attachment, which might benull.- Returns:
- attachment.
-
submit
long submit(IoOps ops)
Submit theIoOpsto 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:
trueif cancellation was successful,falseotherwise.
-
-