protected void checkVersion ( long clientVersion ) throws IOException { if ( mServiceVersion == Constants . UNKNOWN_SERVICE_VERSION ) { mServiceVersion = getRemoteServiceVersion ( ) ; if ( mServiceVersion != clientVersion ) { throw new IOException ( ExceptionMessage . INCOMPATIBLE_VERSION . getMessage ( getServiceName ( ) , clientVersion , mServiceVersion ) ) ; } } }
Checks that the service version is compatible with the client .