return response.getIdentifier().get(0);
}
@Override
public Object2LongMap<ValueSpecification> getIdentifiers(Collection<ValueSpecification> specs) {
final IdentifierLookupRequest request = new IdentifierLookupRequest(specs);
final IdentifierLookupResponse response = getRemoteCacheClient().sendGetMessage(request, IdentifierLookupResponse.class);
final List<Long> identifiers = response.getIdentifier();
final Object2LongMap<ValueSpecification> identifierMap = new Object2LongOpenHashMap<ValueSpecification>();
int i = 0;
for (ValueSpecification spec : request.getSpecification()) {
identifierMap.put(spec, identifiers.get(i++));
}
return identifierMap;
}