Package org.apache.pekko.io
Interface ChannelRegistration
- All Superinterfaces:
NoSerializationVerificationNeeded
Implementations of this interface are sent as actor messages back to a channel actor as
a result of it having called
register on the ChannelRegistry.
Enables a channel actor to directly schedule interest setting tasks to the selector management dispatcher.-
Method Summary
Modifier and TypeMethodDescriptionvoidcancelAndClose(scala.Function0<scala.runtime.BoxedUnit> andThen) Explicitly cancel the registration and close the underlying channel.voiddisableInterest(int op) voidenableInterest(int op)
-
Method Details
-
cancelAndClose
void cancelAndClose(scala.Function0<scala.runtime.BoxedUnit> andThen) Explicitly cancel the registration and close the underlying channel. Then run the givenandThenmethod. TheandThenmethod is run from another thread so make sure it's safe to execute from there. -
disableInterest
void disableInterest(int op) -
enableInterest
void enableInterest(int op)
-