public boolean dispose ( Long streamId ) { boolean result = false ; if ( streamId != null ) { Disposable disposable = subscriptions . remove ( streamId ) ; result = disposable != null ; if ( result ) { LOGGER . debug ( "Dispose subscription by sid={}, session={}" , streamId , id ) ; disposable . dispose ( ) ; } } return result ; }
Disposing stored subscription by given stream id .