register

public final static Unit register(String selectorKey, ISelector selector)(source)

Registers the given selector with the given key or throws an exception, if there was a selector or load selector registered for the given key.

Parameters

selectorKey

The key (as in key-value pair) to register a selector for

selector

The selector instance