You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ud...@apache.org on 2017/10/25 16:54:41 UTC

[geode] branch feature/GEODE-3903 updated: GEODE-3903: Amending OperationContext.java to address review comments

This is an automated email from the ASF dual-hosted git repository.

udo pushed a commit to branch feature/GEODE-3903
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/feature/GEODE-3903 by this push:
     new b692ae6  GEODE-3903: Amending OperationContext.java to address review comments
b692ae6 is described below

commit b692ae6282040ab04d4194ab4a723cf322ca8519
Author: kohlmu-pivotal <uk...@pivotal.io>
AuthorDate: Wed Oct 25 09:54:34 2017 -0700

    GEODE-3903: Amending OperationContext.java to address review comments
---
 .../geode/internal/protocol/OperationContext.java    | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/geode-client-protocol/src/main/java/org/apache/geode/internal/protocol/OperationContext.java b/geode-client-protocol/src/main/java/org/apache/geode/internal/protocol/OperationContext.java
index 1e627e5..17f6eff 100644
--- a/geode-client-protocol/src/main/java/org/apache/geode/internal/protocol/OperationContext.java
+++ b/geode-client-protocol/src/main/java/org/apache/geode/internal/protocol/OperationContext.java
@@ -22,16 +22,16 @@ import org.apache.geode.internal.protocol.operations.OperationHandler;
 import org.apache.geode.security.ResourcePermission;
 
 @Experimental
-public abstract class OperationContext<OperationRequest, OperationResponse, ErrorResp, ProtocolRequest, ProtocolResp> {
-  private final OperationHandler<OperationRequest, OperationResponse, ErrorResp> operationHandler;
+public abstract class OperationContext<OperationRequest, OperationResponse, ErrorResponse, ProtocolRequest, ProtocolResponse> {
+  private final OperationHandler<OperationRequest, OperationResponse, ErrorResponse> operationHandler;
   private final Function<ProtocolRequest, OperationRequest> fromRequest;
-  private final Function<OperationResponse, ProtocolResp> toResponse;
-  private final Function<ErrorResp, ProtocolResp> toErrorResponse;
+  private final Function<OperationResponse, ProtocolResponse> toResponse;
+  private final Function<ErrorResponse, ProtocolResponse> toErrorResponse;
   private final ResourcePermission accessPermissionRequired;
 
   public OperationContext(Function<ProtocolRequest, OperationRequest> fromRequest,
-      OperationHandler<OperationRequest, OperationResponse, ErrorResp> operationHandler,
-      Function<OperationResponse, ProtocolResp> toResponse, ResourcePermission permissionRequired) {
+                          OperationHandler<OperationRequest, OperationResponse, ErrorResponse> operationHandler,
+                          Function<OperationResponse, ProtocolResponse> toResponse, ResourcePermission permissionRequired) {
     this.operationHandler = operationHandler;
     this.fromRequest = fromRequest;
     this.toResponse = toResponse;
@@ -39,9 +39,9 @@ public abstract class OperationContext<OperationRequest, OperationResponse, Erro
     accessPermissionRequired = permissionRequired;
   }
 
-  protected abstract ProtocolResp makeErrorBuilder(ErrorResp errorResponse);
+  protected abstract ProtocolResponse makeErrorBuilder(ErrorResponse errorResponse);
 
-  public OperationHandler<OperationRequest, OperationResponse, ErrorResp> getOperationHandler() {
+  public OperationHandler<OperationRequest, OperationResponse, ErrorResponse> getOperationHandler() {
     return operationHandler;
   }
 
@@ -49,11 +49,11 @@ public abstract class OperationContext<OperationRequest, OperationResponse, Erro
     return fromRequest;
   }
 
-  public Function<OperationResponse, ProtocolResp> getToResponse() {
+  public Function<OperationResponse, ProtocolResponse> getToResponse() {
     return toResponse;
   }
 
-  public Function<ErrorResp, ProtocolResp> getToErrorResponse() {
+  public Function<ErrorResponse, ProtocolResponse> getToErrorResponse() {
     return toErrorResponse;
   }
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@geode.apache.org" <co...@geode.apache.org>'].