Skip to content

Commit

Permalink
refactor: modify method name to avoid ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun committed May 23, 2020
1 parent 6426440 commit 0e52d04
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ public List<SnapshotOperation> loadSnapshotOperate() {

@SuppressWarnings("all")
@Override
public Response getData(final GetRequest request) {
public Response onRequest(final GetRequest request) {
final SelectRequest selectRequest = serializer
.deserialize(request.getData().toByteArray(), SelectRequest.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public abstract class LogProcessor {
* @param request request {@link GetRequest}
* @return target type data
*/
public abstract Response getData(GetRequest request);
public abstract Response onRequest(GetRequest request);

/**
* Process Submitted Log
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ Response get(final GetRequest request) {
public void run(Status status, long index, byte[] reqCtx) {
if (status.isOk()) {
try {
Response response = tuple.processor.getData(request);
Response response = tuple.processor.onRequest(request);
future.complete(response);
}
catch (Throwable t) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void onApply(Iterator iter) {
}

if (message instanceof GetRequest) {
Response response = processor.getData((GetRequest) message);
Response response = processor.onRequest((GetRequest) message);
postProcessor(response, closure);
}
}
Expand Down

0 comments on commit 0e52d04

Please sign in to comment.