public void shutdownInvocations ( ) { logger . finest ( "Shutting down invocations" ) ; invocationRegistry . shutdown ( ) ; invocationMonitor . shutdown ( ) ; inboundResponseHandlerSupplier . shutdown ( ) ; try { invocationMonitor . awaitTermination ( TERMINATION_TIMEOUT_MILLIS ) ; } catch ( InterruptedException e ) { // TODO: we need a better mechanism for dealing with interruption and waiting for termination Thread . currentThread ( ) . interrupt ( ) ; } }
Shuts down invocation infrastructure . New invocation requests will be rejected after shutdown and all pending invocations will be notified with a failure response .