ServerChannel
Representation of a bound server
trait Closeable
trait AutoCloseable
class Object
trait Matchable
class Any
Value members
Abstract methods
Concrete methods
Add code to be executed when the ServerChannel is closed
Add code to be executed when the ServerChannel is closed
- Value Params
- f
hook to execute on shutdown
- Returns
true if the hook was successfully registered, false otherwise.
- Note
There are no guarantees as to order of shutdown hook execution or that they will be executed sequentially.
Close the ServerChannel and execute any shutdown hooks
Close the ServerChannel and execute any shutdown hooks
- Note
this method is idempotent