use of org.neo4j.values.storable.LongValue in project neo4j by neo4j.
the class RoutingResultFormat method parse.
public static RoutingResult parse(AnyValue[] record) {
LongValue timeToLiveSeconds = (LongValue) record[0];
ListValue endpointData = (ListValue) record[1];
Map<Role, List<SocketAddress>> endpoints = parseRows(endpointData);
return new RoutingResult(endpoints.get(ROUTE), endpoints.get(WRITE), endpoints.get(READ), timeToLiveSeconds.longValue() * 1000);
}
Aggregations