public boolean isSendRemoteMessage ( BaseMessage message ) { if ( message instanceof RecordMessage ) // Always { RecordMessageHeader recMessageHeader = ( RecordMessageHeader ) message . getMessageHeader ( ) ; int iChangeType = recMessageHeader . getRecordMessageType ( ) ; if ( m_iDatabaseType == recMessageHeader . getDatabaseType ( ) ) if ( DBParams . CLIENT . equals ( recMessageHeader . getSourceType ( ) ) ) // Don't send only if Client DB is handling these messages. { if ( ! ( this instanceof GridRecordMessageFilter ) ) if ( ( iChangeType == DBConstants . AFTER_UPDATE_TYPE ) || ( iChangeType == DBConstants . AFTER_ADD_TYPE ) || ( iChangeType == DBConstants . AFTER_DELETE_TYPE ) ) return false ; // The remote version of me handles this message remotely. if ( this instanceof GridRecordMessageFilter ) if ( iChangeType == DBConstants . AFTER_REQUERY_TYPE ) return false ; // The remote version of me handles this message remotely. } } return super . isSendRemoteMessage ( message ) ; }
Do I send this message to the remote server?