private void parseUserClientSync(ClientSync sync, ByteBuffer buf, int options, int payloadLength) { int payloadLimitPosition = buf.position() + payloadLength; UserClientSync userSync = new UserClientSync(); while (buf.position() < payloadLimitPosition) { byte fieldId = buf.get(); switch (fieldId) { case USER_ATTACH_FIELD_ID: userSync.setUserAttachRequest(parseUserAttachRequest(buf)); break; case ENDPOINT_ATTACH_FIELD_ID: userSync.setEndpointAttachRequests(parseEndpointAttachRequests(buf)); break; case ENDPOINT_DETACH_FIELD_ID: userSync.setEndpointDetachRequests(parseEndpointDetachRequests(buf)); break; default: break; } } sync.setUserSync(userSync); }
request.getRequestId(), request.getEndpointKeyHash())); sync.setEndpointDetachRequests(requests);