use of org.neo4j.com.Response in project neo4j by neo4j.
the class MasterClient214 method createPropertyKey.
@Override
public Response<Integer> createPropertyKey(RequestContext context, final String name) {
Serializer serializer = buffer -> writeString(buffer, name);
Deserializer<Integer> deserializer = (buffer, temporaryBuffer) -> buffer.readInt();
return sendRequest(requestTypes.type(HaRequestTypes.Type.CREATE_PROPERTY_KEY), context, serializer, deserializer);
}
use of org.neo4j.com.Response in project neo4j by neo4j.
the class MasterClient214 method handshake.
@Override
public Response<HandshakeResult> handshake(final long txId, StoreId storeId) {
Serializer serializer = buffer -> buffer.writeLong(txId);
Deserializer<HandshakeResult> deserializer = (buffer, temporaryBuffer) -> new HandshakeResult(buffer.readLong(), buffer.readLong());
return sendRequest(requestTypes.type(HaRequestTypes.Type.HANDSHAKE), RequestContext.EMPTY, serializer, deserializer, storeId, ResponseUnpacker.TxHandler.NO_OP_TX_HANDLER);
}
Aggregations