private static ConfigurationClientSync convert(ConfigurationSyncRequest source) { if (source == null) { return null; } boolean resyncOnly = source.getResyncOnly() != null ? source.getResyncOnly() : false; return new ConfigurationClientSync(source.getConfigurationHash(), resyncOnly); }
private void parseConfigurationClientSync(ClientSync sync, ByteBuffer buf, int options, int payloadLength) { ConfigurationClientSync confSync = new ConfigurationClientSync(); if (hasOption(options, CONFIGURATION_HASH_OPTION)) { confSync.setConfigurationHash(getNewByteBuffer(buf, CONFIGURATION_HASH_SIZE)); } if (hasOption(options, CONFIGURATION_RESYNC_OPTION)) { confSync.setResyncOnly(true); } sync.setConfigurationSync(confSync); }