public void addDisconnectInterceptor ( DisconnectInterceptor < ? > interceptor ) { Class < ? > serviceApiType = GenericTypeResolver . resolveTypeArgument ( interceptor . getClass ( ) , DisconnectInterceptor . class ) ; disconnectInterceptors . add ( serviceApiType , interceptor ) ; }
Adds a DisconnectInterceptor to receive callbacks during the disconnection process . Useful for programmatic configuration .