shutdown method

  1. @override
void shutdown()
override

Shuts down this communicator's server functionality, which includes the deactivation of all object adapters. Attempts to use a deactivated object adapter raise ObjectAdapterDeactivatedException. Subsequent calls to shutdown are ignored. After shutdown returns, no new requests are processed. However, requests that have been started before shutdown was called might still be active. You can use {@link #waitForShutdown} to wait for the completion of all requests. @see #destroy @see #waitForShutdown @see ObjectAdapter#deactivate

Implementation

@override
void shutdown() {
  instance.objectAdapterFactory.shutdown();

  instance.referenceFactory.destory();
  completer.complete(State.deactivated);
}