protected void finishedPayload(byte[] pl) throws IOException { if(errorCode != 0) { OperationStatus status=getStatusForErrorCode(errorCode, pl); if(status == null) { handleError(OperationErrorType.SERVER, new String(pl)); } else { getCallback().receivedStatus(status); transitionState(OperationState.COMPLETE); } } else { decodePayload(pl); transitionState(OperationState.COMPLETE); } }
protected void finishedPayload(byte[] pl) throws IOException { if(errorCode != 0) { OperationStatus status=getStatusForErrorCode(errorCode, pl); if(status == null) { handleError(OperationErrorType.SERVER, new String(pl)); } else { getCallback().receivedStatus(status); transitionState(OperationState.COMPLETE); } } else { decodePayload(pl); transitionState(OperationState.COMPLETE); } }
protected void finishedPayload(byte[] pl) throws IOException { if (errorCode != 0) { OperationStatus status = getStatusForErrorCode(errorCode, pl); if (status == null) { handleError(OperationErrorType.SERVER, new String(pl)); } else { getCallback().receivedStatus(status); transitionState(OperationState.COMPLETE); } } else { decodePayload(pl); transitionState(OperationState.COMPLETE); } }
protected void finishedPayload(byte[] pl) throws IOException { OperationStatus status = getStatusForErrorCode(errorCode, pl); if (status == null) { handleError(OperationErrorType.SERVER, new String(pl)); } else if (errorCode == SUCCESS) { decodePayload(pl); transitionState(OperationState.COMPLETE); } else if (errorCode == ERR_NOT_MY_VBUCKET && !getState().equals(OperationState.COMPLETE)) { transitionState(OperationState.RETRY); } else { getCallback().receivedStatus(status); transitionState(OperationState.COMPLETE); } }
protected void finishedPayload(byte[] pl) throws IOException { OperationStatus status = getStatusForErrorCode(errorCode, pl); if (status == null) { handleError(OperationErrorType.SERVER, new String(pl)); } else if (errorCode == SUCCESS) { decodePayload(pl); transitionState(OperationState.COMPLETE); } else if (errorCode == ERR_NOT_MY_VBUCKET && !getState().equals(OperationState.COMPLETE)) { transitionState(OperationState.RETRY); } else { getCallback().receivedStatus(status); transitionState(OperationState.COMPLETE); } }
protected void finishedPayload(byte[] pl) throws IOException { OperationStatus status = getStatusForErrorCode(errorCode, pl); if (status == null) { handleError(OperationErrorType.SERVER, new String(pl)); } else if (errorCode == SUCCESS) { decodePayload(pl); transitionState(OperationState.COMPLETE); } else if (errorCode == ERR_NOT_MY_VBUCKET && !getState().equals(OperationState.COMPLETE)) { transitionState(OperationState.RETRY); } else { getCallback().receivedStatus(status); transitionState(OperationState.COMPLETE); } }