Set the listener to be used for notification.
This may be called multiple times but only one listener is active at one time.
Parameters
the listener or null
to stop listening.
a Executor to do the call in or null
if listener
is null
.
Throws
if Executor is null
for a non-null
listener.