use of org.neo4j.com.Deserializer 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