Adds the specified recovery {@code listener} for the localnode. If the local node is designated as a backup for a node that fails, the specified {@code listener} will be notified(outside of a transaction) by having its {@link RecoveryListener#recover recover} method invoked, passing thefailed node and a {@link RecoveryCompleteFuture} whose {@link RecoveryCompleteFuture#done done} method must be invoked whenthe recovery operations initiated by the {@code listener} arecomplete.
This method must be invoked outside of a transaction.
@param listener a recovery listener
@throws IllegalStateException if this method is invoked from atransactional context