protected boolean isEqualEnvelope ( Envelope a , Envelope b ) { return a . getMessage ( ) . getClass ( ) == b . getMessage ( ) . getClass ( ) ; }
Override this if you need to change filtering for scheduleOnce behaviour . By default it check equality only of class names .